Logo Search packages:      
Sourcecode: madman version File versions  Download package

apetaglib.h File Reference


Detailed Description

All function related to apetag.

Definition in file apetaglib.h.

Go to the source code of this file.

Classes

struct  tag
 tag structure More...

Defines

#define APE_TAG_LIB_DEL_ALL   "\04"
#define APE_TAG_LIB_FIRST   "\02"
#define APE_TAG_LIB_NEXT   "\03"
#define apefrm_fake_remove(mem_cnt, name)   apefrm_remove(mem_cnt,name)
 set frame to remove
#define APETAGLIB_VERSION   "0.5pre1"
frame names


#define APE_TAG_FIELD_ABSTRACT_URL   "Abstract"
#define APE_TAG_FIELD_ALBUM   "Album"
#define APE_TAG_FIELD_ARTIST   "Artist"
#define APE_TAG_FIELD_ARTIST_URL   "Artist URL"
#define APE_TAG_FIELD_BIBLIOGRAPHY_URL   "Bibliography"
#define APE_TAG_FIELD_BUY_URL   "Buy URL"
#define APE_TAG_FIELD_COMMENT   "Comment"
#define APE_TAG_FIELD_COMPOSER   "Composer"
#define APE_TAG_FIELD_CONDUCTOR   "Conductor"
#define APE_TAG_FIELD_COPYRIGHT   "Copyright"
#define APE_TAG_FIELD_COPYRIGHT_URL   "Copyright URL"
#define APE_TAG_FIELD_COVER_ART_FRONT   "Cover Art (front)"
#define APE_TAG_FIELD_DEBUTALBUM   "Debut Album"
#define APE_TAG_FIELD_DUMMY   "Dummy"
#define APE_TAG_FIELD_EANUPC   "EAN/UPC"
#define APE_TAG_FIELD_FILE   "File"
#define APE_TAG_FIELD_FILE_URL   "File URL"
#define APE_TAG_FIELD_GENRE   "Genre"
#define APE_TAG_FIELD_INDEX   "Index"
#define APE_TAG_FIELD_INTROPLAY   "Introplay"
#define APE_TAG_FIELD_ISRC   "ISRC"
#define APE_TAG_FIELD_LYRICS   "Lyrics"
#define APE_TAG_FIELD_MEDIA   "Media"
#define APE_TAG_FIELD_MJ_METADATA   "Media Jukebox Metadata"
#define APE_TAG_FIELD_NOTES   "Notes"
#define APE_TAG_FIELD_PUBLICATIONRIGHT   "Publicationright"
#define APE_TAG_FIELD_PUBLISHER   "Publisher"
#define APE_TAG_FIELD_PUBLISHER_URL   "Publisher URL"
#define APE_TAG_FIELD_RECORDDATE   "Record Date"
#define APE_TAG_FIELD_RECORDLOCATION   "Record Location"
#define APE_TAG_FIELD_RELATED_URL   "Related"
#define APE_TAG_FIELD_SUBTITLE   "Subtitle"
#define APE_TAG_FIELD_TITLE   "Title"
#define APE_TAG_FIELD_TRACK   "Track"
#define APE_TAG_FIELD_YEAR   "Year"
#apetag_save flags
Note:
default is APE_TAG_V2 + SAVE_NEW_OLD_APE_TAG + SAVE_REMOVE_ID3V1


#define APE_TAG_V1   (1 << 1)
#define APE_TAG_V2   (1 << 2)
#define DONT_READ_TAG_APE   (1 << 8)
#define DONT_READ_TAG_ID3V1   (1 << 9)
#define DONT_READ_TAG_ID3V2   (1 << 10)
#define SAVE_CREATE_ID3V1_TAG   (1 << 6)
#define SAVE_FAKE_SAVE   (1 << 7)
#define SAVE_NEW_APE_TAG   (1 << 3)
#define SAVE_NEW_OLD_APE_TAG   (1 << 4)
#define SAVE_REMOVE_ID3V1   (1 << 5)
#atl_return
return codes from all functions

#define ATL_BADARG   5
#define ATL_FOPEN   1
#define ATL_FREAD   2
#define ATL_FWRITE   3
#define ATL_MALOC   4
#define ATL_NOINIT   6
#define ATL_OK   0
flags in frames and headers


#define FOOTER_IS   0x00000000
#define FOOTER_NOT   0x40000000
#define FOOTER_THIS_IS   0x00000000
#define HEADER_IS   0x80000000
#define HEADER_NOT   0x00000000
#define HEADER_THIS_IS   0x20000000
#define ITEM_BIN   0x00000002
#define ITEM_LINK   0x00000004
#define ITEM_TEXT   0x00000000
#define ITEM_URL   0x00000004
#define TAG_RO   0x00000001
#define TAG_RW   0x00000000
#define PRINT_D(x)
#define PRINT_D1(x, a)
#define PRINT_D2(x, a, b)
#define PRINT_D3(x, a, b, c)
#define PRINT_D4(x, a, b, c, d)
#define PRINT_D5(x, a, b, c, d, e)
#define PRINT_D6(x, a, b, c, d, e, f)
#define PRINT_D7(x, a, b, c, d, e, f, g)
#define PRINT_D8(x, a, b, c, d, e, f, g, i)
#define PRINT_D9(x, a, b, c, d, e, f, g, i, j)
#define PRINT_ERR(x)   fprintf( stderr, x )
#define PRINT_ERR1(x, a)   fprintf( stderr, x ,a)

Typedefs

typedef struct _ape_mem_cnt apetag
 object apetag used to store information about tag

Functions

int apefrm_add (apetag *mem_cnt, unsigned long flags, char *name, char *value)
 Add text frame.
int apefrm_add_bin (apetag *mem_cnt, unsigned long flags, long sizeName, char *name, long sizeValue, char *value)
 add binary frame
int apefrm_add_noreplace (apetag *mem_cnt, unsigned long flags, char *name, char *value)
 add frame if other (the same name) no exist
struct tagapefrm_get (apetag *mem_cnt, char *name)
 search in apetag for name and return tag
char * apefrm_getstr (apetag *mem_cnt, char *name)
 search in apetag for name and return string
void apefrm_remove (apetag *mem_cnt, char *name)
 set frame to remove
void apefrm_remove_real (apetag *mem_cnt, char *name)
 remove frame from memory
void apetag_free (apetag *mem_cnt)
 free all work
apetagapetag_init (void)
 initialise new object apetag and return
int apetag_read (apetag *mem_cnt, char *filename, int flag)
 read file and add frames
int apetag_read_fp (apetag *mem_cnt, FILE *fp, char *filename, int flag)
 read file and add frames
int apetag_save (char *filename, apetag *mem_cnt, int flag)
 save apetag to file
void libapetag_print_mem_cnt (apetag *mem_cnt)
int readtag_id3v1_fp (apetag *mem_cnt, FILE *fp)
 read id3v1 and add frames


Generated by  Doxygen 1.6.0   Back to index