33 #if defined HAVE_CONFIG_H
44 #define ID3_CATCH(code) try { code; } catch (...) { }
51 return reinterpret_cast<ID3Tag *
>(tag);
158 return reinterpret_cast<ID3Frame*
>(rem_frame);
243 return reinterpret_cast<ID3Frame *
>(frame);
255 ID3_CATCH(frame =
reinterpret_cast<const ID3_Tag *
>(tag)->Find(
id, fld, data));
258 return reinterpret_cast<ID3Frame *
>(frame);
270 ID3_CATCH(frame =
reinterpret_cast<const ID3_Tag *
>(tag)->Find(
id, fld, data));
273 return reinterpret_cast<ID3Frame *
>(frame);
285 ID3_CATCH(frame =
reinterpret_cast<const ID3_Tag *
>(tag)->Find(
id, fld, data));
288 return reinterpret_cast<ID3Frame *
>(frame);
329 return reinterpret_cast<ID3TagIterator*
>(iter);
342 return reinterpret_cast<ID3TagConstIterator*
>(iter);
362 return reinterpret_cast<ID3Frame*
>(frame);
382 return reinterpret_cast<const ID3Frame*
>(frame);
392 return reinterpret_cast<ID3Frame *
>(frame);
400 return reinterpret_cast<ID3Frame *
>(frame);
457 return reinterpret_cast<ID3Field *
>(field);
474 bool compressed =
false;
565 ID3_CATCH(numChars =
reinterpret_cast<const ID3_Field *
>(field)->Get(buffer, maxChars));
574 size_t maxChars,
size_t itemNum)
580 ID3_CATCH(numChars =
reinterpret_cast<const ID3_Field *
>(field)->Get(buffer, maxChars, itemNum));
614 ID3_CATCH(numChars =
reinterpret_cast<const ID3_Field *
>(field)->Get(buffer, maxChars));
622 size_t maxChars,
size_t itemNum)
628 ID3_CATCH(numChars =
reinterpret_cast<const ID3_Field *
>(field)->Get(buffer, maxChars, itemNum));
687 bool changed =
false;
709 bool isEncodable =
false;
ID3_C_EXPORT ID3Tag *CCONV ID3Tag_New(void)
ID3_C_EXPORT size_t CCONV ID3Field_GetASCIIItem(const ID3Field *field, char *buffer, size_t maxChars, size_t itemNum)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_RemoveFrame(ID3Tag *tag, const ID3Frame *frame)
ID3_C_EXPORT bool CCONV ID3Frame_GetCompression(const ID3Frame *frame)
ID3_C_EXPORT void CCONV ID3Tag_AddFrame(ID3Tag *tag, const ID3Frame *frame)
ID3_C_EXPORT bool CCONV ID3Tag_AttachFrame(ID3Tag *tag, ID3Frame *frame)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_Update(ID3Tag *tag)
ID3_C_EXPORT void CCONV ID3Field_FromFile(ID3Field *field, const char *fileName)
ID3_C_EXPORT void CCONV ID3Field_SetASCII(ID3Field *field, const char *string)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithID(const ID3Tag *tag, ID3_FrameID id)
ID3_C_EXPORT ID3Frame *CCONV ID3Frame_NewID(ID3_FrameID id)
ID3_C_EXPORT void CCONV ID3Tag_SetExtendedHeader(ID3Tag *tag, bool ext)
ID3_C_EXPORT size_t CCONV ID3Field_Size(const ID3Field *field)
ID3_C_EXPORT ID3_FrameID CCONV ID3Frame_GetID(const ID3Frame *frame)
ID3_C_EXPORT void CCONV ID3Frame_SetID(ID3Frame *frame, ID3_FrameID id)
ID3_C_EXPORT void CCONV ID3Tag_SetUnsync(ID3Tag *tag, bool unsync)
ID3_C_EXPORT size_t CCONV ID3Field_GetNumTextItems(const ID3Field *field)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_UpdateByTagType(ID3Tag *tag, flags_t tag_type)
ID3_C_EXPORT void CCONV ID3Field_SetBINARY(ID3Field *field, const uchar *data, size_t size)
ID3_C_EXPORT void CCONV ID3Frame_Clear(ID3Frame *frame)
ID3_C_EXPORT size_t CCONV ID3Field_GetASCII(const ID3Field *field, char *buffer, size_t maxChars)
ID3_C_EXPORT size_t CCONV ID3Tag_NumFrames(const ID3Tag *tag)
ID3_C_EXPORT ID3Frame *CCONV ID3Frame_New(void)
ID3_C_EXPORT ID3Frame *CCONV ID3TagIterator_GetNext(ID3TagIterator *iter)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_Parse(ID3Tag *tag, const uchar header[ID3_TAGHEADERSIZE], const uchar *buffer)
ID3_C_EXPORT size_t CCONV ID3Field_GetUNICODE(const ID3Field *field, unicode_t *buffer, size_t maxChars)
ID3_C_EXPORT const ID3Frame *CCONV ID3TagConstIterator_GetNext(ID3TagConstIterator *iter)
ID3_C_EXPORT void CCONV ID3Frame_SetCompression(ID3Frame *frame, bool comp)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithINT(const ID3Tag *tag, ID3_FrameID id, ID3_FieldID fld, uint32 data)
ID3_C_EXPORT ID3TagIterator *CCONV ID3Tag_CreateIterator(ID3Tag *tag)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_Strip(ID3Tag *tag, flags_t ulTagFlags)
ID3_C_EXPORT size_t CCONV ID3Tag_LinkWithFlags(ID3Tag *tag, const char *fileName, flags_t flags)
ID3_C_EXPORT void CCONV ID3Field_AddUNICODE(ID3Field *field, const unicode_t *string)
ID3_C_EXPORT uint32 CCONV ID3Field_GetINT(const ID3Field *field)
ID3_C_EXPORT bool CCONV ID3Tag_HasChanged(const ID3Tag *tag)
ID3_C_EXPORT void CCONV ID3Field_ToFile(const ID3Field *field, const char *fileName)
ID3_C_EXPORT void CCONV ID3Tag_Clear(ID3Tag *tag)
ID3_C_EXPORT bool CCONV ID3Field_SetEncoding(ID3Field *field, ID3_TextEnc enc)
ID3_C_EXPORT void CCONV ID3Field_AddASCII(ID3Field *field, const char *string)
ID3_C_EXPORT void CCONV ID3TagIterator_Delete(ID3TagIterator *iter)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithASCII(const ID3Tag *tag, ID3_FrameID id, ID3_FieldID fld, const char *data)
ID3_C_EXPORT void CCONV ID3Tag_AddFrames(ID3Tag *tag, const ID3Frame *frames, size_t num)
ID3_C_EXPORT void CCONV ID3Field_SetINT(ID3Field *field, uint32 data)
ID3_C_EXPORT void CCONV ID3Field_SetUNICODE(ID3Field *field, const unicode_t *string)
ID3_C_EXPORT void CCONV ID3Field_Clear(ID3Field *field)
ID3_C_EXPORT void CCONV ID3TagConstIterator_Delete(ID3TagConstIterator *iter)
ID3_C_EXPORT bool CCONV ID3Tag_HasTagType(const ID3Tag *tag, ID3_TagType tt)
ID3_C_EXPORT size_t CCONV ID3Field_GetUNICODEItem(const ID3Field *field, unicode_t *buffer, size_t maxChars, size_t itemNum)
ID3_C_EXPORT ID3_TextEnc CCONV ID3Field_GetEncoding(const ID3Field *field)
ID3_C_EXPORT void CCONV ID3Tag_SetPadding(ID3Tag *tag, bool pad)
ID3_C_EXPORT size_t CCONV ID3Tag_Link(ID3Tag *tag, const char *fileName)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithUNICODE(const ID3Tag *tag, ID3_FrameID id, ID3_FieldID fld, const unicode_t *data)
ID3_C_EXPORT bool CCONV ID3Field_IsEncodable(const ID3Field *field)
ID3_C_EXPORT void CCONV ID3Field_GetBINARY(const ID3Field *field, uchar *buffer, size_t buffLength)
ID3_C_EXPORT ID3Field *CCONV ID3Frame_GetField(const ID3Frame *frame, ID3_FieldID name)
ID3_C_EXPORT void CCONV ID3Tag_Delete(ID3Tag *tag)
ID3_C_EXPORT void CCONV ID3Frame_Delete(ID3Frame *frame)
ID3_C_EXPORT ID3TagConstIterator *CCONV ID3Tag_CreateConstIterator(const ID3Tag *tag)
The representative class of an ID3v2 field.
The representative class of an id3v2 frame.
The representative class of an id3 tag.
ID3_Err
Predefined id3lib error types.
@ ID3E_NoError
No error reported.
ID3_FieldID
Enumeration of the different types of fields in a frame.
ID3_TextEnc
Enumeration of the types of text encodings: ascii or unicode.
ID3_TagType
The various types of tags that id3lib can handle.
#define ID3_C_EXPORT
This file defines common macros, types, constants, and enums used throughout id3lib.
ID3_FrameID
Enumeration of the different types of frames recognized by id3lib.
@ ID3FID_NOFRAME
No known frame.
#define ID3_TAGHEADERSIZE