109
|
1 #ifndef _tags_h
|
|
2 #define _tags_h
|
|
3
|
|
4 #include <stdio.h>
|
|
5
|
|
6 const int MAX_LEN = 2048;
|
459
|
7 const int MAX_LEN2 = 128;
|
109
|
8 const int TAG_NONE = 0;
|
|
9 const int TAG_ID3 = 1;
|
|
10 const int TAG_APE = 2;
|
|
11
|
|
12 typedef struct {
|
|
13 char title [MAX_LEN];
|
|
14 char artist [MAX_LEN];
|
|
15 char album [MAX_LEN];
|
|
16 char comment [MAX_LEN];
|
|
17 char genre [MAX_LEN];
|
458
|
18 char track [MAX_LEN2];
|
|
19 char year [MAX_LEN2];
|
109
|
20 int _genre;
|
|
21 } ape_tag;
|
|
22
|
|
23 int utf8ToUnicode ( const char* lpMultiByteStr, wchar_t* lpWideCharStr, int cmbChars );
|
|
24
|
|
25 int GetTageType ( FILE *fp );
|
|
26
|
|
27 int DeleteTag ( char* filename);
|
|
28
|
|
29 int WriteAPE2Tag ( char* fp, ape_tag *Tag );
|
|
30
|
|
31 int ReadAPE2Tag ( FILE *fp, ape_tag *Tag );
|
|
32
|
|
33 int ReadID3Tag ( FILE *fp, ape_tag *Tag );
|
|
34
|
|
35 #endif
|