src/c_wrapper.cpp File Reference

#include "id3.h"
#include "tag.h"
#include "field.h"

Go to the source code of this file.

Defines

#define ID3_CATCH(code)   try { code; } catch (...) { }

Functions

ID3_C_EXPORT ID3Tag *CCONV ID3Tag_New (void)
ID3_C_EXPORT void CCONV ID3Tag_Delete (ID3Tag *tag)
ID3_C_EXPORT void CCONV ID3Tag_Clear (ID3Tag *tag)
ID3_C_EXPORT bool CCONV ID3Tag_HasChanged (const ID3Tag *tag)
ID3_C_EXPORT void CCONV ID3Tag_SetUnsync (ID3Tag *tag, bool unsync)
ID3_C_EXPORT void CCONV ID3Tag_SetExtendedHeader (ID3Tag *tag, bool ext)
ID3_C_EXPORT void CCONV ID3Tag_SetPadding (ID3Tag *tag, bool pad)
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 void CCONV ID3Tag_AddFrames (ID3Tag *tag, const ID3Frame *frames, size_t num)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_RemoveFrame (ID3Tag *tag, const ID3Frame *frame)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_Parse (ID3Tag *tag, const uchar header[ID3_TAGHEADERSIZE], const uchar *buffer)
ID3_C_EXPORT size_t CCONV ID3Tag_Link (ID3Tag *tag, const char *fileName)
ID3_C_EXPORT size_t CCONV ID3Tag_LinkWithFlags (ID3Tag *tag, const char *fileName, flags_t flags)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_Update (ID3Tag *tag)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_UpdateByTagType (ID3Tag *tag, flags_t tag_type)
ID3_C_EXPORT ID3_Err CCONV ID3Tag_Strip (ID3Tag *tag, flags_t ulTagFlags)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithID (const ID3Tag *tag, ID3_FrameID id)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithINT (const ID3Tag *tag, ID3_FrameID id, ID3_FieldID fld, uint32 data)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithASCII (const ID3Tag *tag, ID3_FrameID id, ID3_FieldID fld, const char *data)
ID3_C_EXPORT ID3Frame *CCONV ID3Tag_FindFrameWithUNICODE (const ID3Tag *tag, ID3_FrameID id, ID3_FieldID fld, const unicode_t *data)
ID3_C_EXPORT size_t CCONV ID3Tag_NumFrames (const ID3Tag *tag)
ID3_C_EXPORT bool CCONV ID3Tag_HasTagType (const ID3Tag *tag, ID3_TagType tt)
ID3_C_EXPORT ID3TagIterator
*CCONV 
ID3Tag_CreateIterator (ID3Tag *tag)
ID3_C_EXPORT ID3TagConstIterator
*CCONV 
ID3Tag_CreateConstIterator (const ID3Tag *tag)
ID3_C_EXPORT void CCONV ID3TagIterator_Delete (ID3TagIterator *iter)
ID3_C_EXPORT ID3Frame *CCONV ID3TagIterator_GetNext (ID3TagIterator *iter)
ID3_C_EXPORT void CCONV ID3TagConstIterator_Delete (ID3TagConstIterator *iter)
ID3_C_EXPORT const ID3Frame
*CCONV 
ID3TagConstIterator_GetNext (ID3TagConstIterator *iter)
ID3_C_EXPORT ID3Frame *CCONV ID3Frame_New (void)
ID3_C_EXPORT ID3Frame *CCONV ID3Frame_NewID (ID3_FrameID id)
ID3_C_EXPORT void CCONV ID3Frame_Delete (ID3Frame *frame)
ID3_C_EXPORT void CCONV ID3Frame_Clear (ID3Frame *frame)
ID3_C_EXPORT void CCONV ID3Frame_SetID (ID3Frame *frame, ID3_FrameID id)
ID3_C_EXPORT ID3_FrameID CCONV ID3Frame_GetID (const ID3Frame *frame)
ID3_C_EXPORT ID3Field *CCONV ID3Frame_GetField (const ID3Frame *frame, ID3_FieldID name)
ID3_C_EXPORT void CCONV ID3Frame_SetCompression (ID3Frame *frame, bool comp)
ID3_C_EXPORT bool CCONV ID3Frame_GetCompression (const ID3Frame *frame)
ID3_C_EXPORT void CCONV ID3Field_Clear (ID3Field *field)
ID3_C_EXPORT size_t CCONV ID3Field_Size (const ID3Field *field)
ID3_C_EXPORT size_t CCONV ID3Field_GetNumTextItems (const ID3Field *field)
ID3_C_EXPORT void CCONV ID3Field_SetINT (ID3Field *field, uint32 data)
ID3_C_EXPORT uint32 CCONV ID3Field_GetINT (const ID3Field *field)
ID3_C_EXPORT void CCONV ID3Field_SetUNICODE (ID3Field *field, const unicode_t *string)
ID3_C_EXPORT size_t CCONV ID3Field_GetUNICODE (const ID3Field *field, unicode_t *buffer, size_t maxChars)
ID3_C_EXPORT size_t CCONV ID3Field_GetUNICODEItem (const ID3Field *field, unicode_t *buffer, size_t maxChars, size_t itemNum)
ID3_C_EXPORT void CCONV ID3Field_AddUNICODE (ID3Field *field, const unicode_t *string)
ID3_C_EXPORT void CCONV ID3Field_SetASCII (ID3Field *field, const char *string)
ID3_C_EXPORT size_t CCONV ID3Field_GetASCII (const ID3Field *field, char *buffer, size_t maxChars)
ID3_C_EXPORT size_t CCONV ID3Field_GetASCIIItem (const ID3Field *field, char *buffer, size_t maxChars, size_t itemNum)
ID3_C_EXPORT void CCONV ID3Field_AddASCII (ID3Field *field, const char *string)
ID3_C_EXPORT void CCONV ID3Field_SetBINARY (ID3Field *field, const uchar *data, size_t size)
ID3_C_EXPORT void CCONV ID3Field_GetBINARY (const ID3Field *field, uchar *buffer, size_t buffLength)
ID3_C_EXPORT void CCONV ID3Field_FromFile (ID3Field *field, const char *fileName)
ID3_C_EXPORT void CCONV ID3Field_ToFile (const ID3Field *field, const char *fileName)


Define Documentation

#define ID3_CATCH code   )     try { code; } catch (...) { }
 

Definition at line 44 of file c_wrapper.cpp.

Referenced by ID3Field_AddASCII(), ID3Field_AddUNICODE(), ID3Field_Clear(), ID3Field_FromFile(), ID3Field_GetASCII(), ID3Field_GetASCIIItem(), ID3Field_GetBINARY(), ID3Field_GetINT(), ID3Field_GetNumTextItems(), ID3Field_GetUNICODE(), ID3Field_GetUNICODEItem(), ID3Field_SetASCII(), ID3Field_SetBINARY(), ID3Field_SetINT(), ID3Field_SetUNICODE(), ID3Field_Size(), ID3Field_ToFile(), ID3Frame_Clear(), ID3Frame_Delete(), ID3Frame_GetCompression(), ID3Frame_GetField(), ID3Frame_GetID(), ID3Frame_New(), ID3Frame_NewID(), ID3Frame_SetCompression(), ID3Frame_SetID(), ID3Tag_AddFrame(), ID3Tag_AddFrames(), ID3Tag_AttachFrame(), ID3Tag_Clear(), ID3Tag_CreateConstIterator(), ID3Tag_CreateIterator(), ID3Tag_Delete(), ID3Tag_FindFrameWithASCII(), ID3Tag_FindFrameWithID(), ID3Tag_FindFrameWithINT(), ID3Tag_FindFrameWithUNICODE(), ID3Tag_HasChanged(), ID3Tag_HasTagType(), ID3Tag_Link(), ID3Tag_LinkWithFlags(), ID3Tag_New(), ID3Tag_NumFrames(), ID3Tag_Parse(), ID3Tag_RemoveFrame(), ID3Tag_SetExtendedHeader(), ID3Tag_SetPadding(), ID3Tag_SetUnsync(), ID3Tag_Strip(), ID3Tag_Update(), ID3Tag_UpdateByTagType(), ID3TagConstIterator_Delete(), ID3TagConstIterator_GetNext(), ID3TagIterator_Delete(), and ID3TagIterator_GetNext().


Function Documentation

ID3_C_EXPORT void CCONV ID3Field_AddASCII ID3Field *  field,
const char *  string
 

Definition at line 636 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_AddUNICODE ID3Field *  field,
const unicode_t string
 

Definition at line 588 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_Clear ID3Field *  field  ) 
 

Definition at line 487 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_FromFile ID3Field *  field,
const char *  fileName
 

Definition at line 666 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Field_GetASCII const ID3Field *  field,
char *  buffer,
size_t  maxChars
 

Definition at line 608 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Field_GetASCIIItem const ID3Field *  field,
char *  buffer,
size_t  maxChars,
size_t  itemNum
 

Definition at line 621 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_GetBINARY const ID3Field *  field,
uchar buffer,
size_t  buffLength
 

Definition at line 656 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT uint32 CCONV ID3Field_GetINT const ID3Field *  field  ) 
 

Definition at line 535 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Field_GetNumTextItems const ID3Field *  field  ) 
 

Definition at line 511 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Field_GetUNICODE const ID3Field *  field,
unicode_t buffer,
size_t  maxChars
 

Definition at line 559 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Field_GetUNICODEItem const ID3Field *  field,
unicode_t buffer,
size_t  maxChars,
size_t  itemNum
 

Definition at line 573 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_SetASCII ID3Field *  field,
const char *  string
 

Definition at line 598 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_SetBINARY ID3Field *  field,
const uchar data,
size_t  size
 

Definition at line 646 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_SetINT ID3Field *  field,
uint32  data
 

Definition at line 525 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_SetUNICODE ID3Field *  field,
const unicode_t string
 

Definition at line 549 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Field_Size const ID3Field *  field  ) 
 

Definition at line 497 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Field_ToFile const ID3Field *  field,
const char *  fileName
 

Definition at line 676 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Frame_Clear ID3Frame *  frame  ) 
 

Definition at line 414 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Frame_Delete ID3Frame *  frame  ) 
 

Definition at line 404 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT bool CCONV ID3Frame_GetCompression const ID3Frame *  frame  ) 
 

Definition at line 472 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3Field* CCONV ID3Frame_GetField const ID3Frame *  frame,
ID3_FieldID  name
 

Definition at line 448 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT ID3_FrameID CCONV ID3Frame_GetID const ID3Frame *  frame  ) 
 

Definition at line 434 of file c_wrapper.cpp.

References ID3_CATCH, and ID3FID_NOFRAME.

ID3_C_EXPORT ID3Frame* CCONV ID3Frame_New void   ) 
 

Definition at line 388 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT ID3Frame* CCONV ID3Frame_NewID ID3_FrameID  id  ) 
 

Definition at line 396 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT void CCONV ID3Frame_SetCompression ID3Frame *  frame,
bool  comp
 

Definition at line 462 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Frame_SetID ID3Frame *  frame,
ID3_FrameID  id
 

Definition at line 424 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Tag_AddFrame ID3Tag *  tag,
const ID3Frame *  frame
 

Definition at line 119 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Tag_AddFrames ID3Tag *  tag,
const ID3Frame *  frames,
size_t  num
 

Definition at line 141 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT bool CCONV ID3Tag_AttachFrame ID3Tag *  tag,
ID3Frame *  frame
 

Definition at line 129 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Tag_Clear ID3Tag *  tag  ) 
 

Definition at line 66 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3TagConstIterator* CCONV ID3Tag_CreateConstIterator const ID3Tag *  tag  ) 
 

Definition at line 333 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT ID3TagIterator* CCONV ID3Tag_CreateIterator ID3Tag *  tag  ) 
 

Definition at line 320 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT void CCONV ID3Tag_Delete ID3Tag *  tag  ) 
 

Definition at line 56 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3Frame* CCONV ID3Tag_FindFrameWithASCII const ID3Tag *  tag,
ID3_FrameID  id,
ID3_FieldID  fld,
const char *  data
 

Definition at line 263 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT ID3Frame* CCONV ID3Tag_FindFrameWithID const ID3Tag *  tag,
ID3_FrameID  id
 

Definition at line 234 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT ID3Frame* CCONV ID3Tag_FindFrameWithINT const ID3Tag *  tag,
ID3_FrameID  id,
ID3_FieldID  fld,
uint32  data
 

Definition at line 248 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT ID3Frame* CCONV ID3Tag_FindFrameWithUNICODE const ID3Tag *  tag,
ID3_FrameID  id,
ID3_FieldID  fld,
const unicode_t data
 

Definition at line 278 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT bool CCONV ID3Tag_HasChanged const ID3Tag *  tag  ) 
 

Definition at line 76 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT bool CCONV ID3Tag_HasTagType const ID3Tag *  tag,
ID3_TagType  tt
 

Definition at line 307 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Tag_Link ID3Tag *  tag,
const char *  fileName
 

Definition at line 176 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT size_t CCONV ID3Tag_LinkWithFlags ID3Tag *  tag,
const char *  fileName,
flags_t  flags
 

Definition at line 187 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3Tag* CCONV ID3Tag_New void   ) 
 

Definition at line 47 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT size_t CCONV ID3Tag_NumFrames const ID3Tag *  tag  ) 
 

Definition at line 293 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3_Err CCONV ID3Tag_Parse ID3Tag *  tag,
const uchar  header[ID3_TAGHEADERSIZE],
const uchar buffer
 

Definition at line 163 of file c_wrapper.cpp.

References ID3_CATCH, and ID3E_NoError.

ID3_C_EXPORT ID3Frame* CCONV ID3Tag_RemoveFrame ID3Tag *  tag,
const ID3Frame *  frame
 

Definition at line 151 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT void CCONV ID3Tag_SetExtendedHeader ID3Tag *  tag,
bool  ext
 

Definition at line 100 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Tag_SetPadding ID3Tag *  tag,
bool  pad
 

Definition at line 109 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT void CCONV ID3Tag_SetUnsync ID3Tag *  tag,
bool  unsync
 

Definition at line 90 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3_Err CCONV ID3Tag_Strip ID3Tag *  tag,
flags_t  ulTagFlags
 

Definition at line 223 of file c_wrapper.cpp.

References ID3_CATCH, and ID3E_NoError.

ID3_C_EXPORT ID3_Err CCONV ID3Tag_Update ID3Tag *  tag  ) 
 

Definition at line 200 of file c_wrapper.cpp.

References ID3_CATCH, and ID3E_NoError.

ID3_C_EXPORT ID3_Err CCONV ID3Tag_UpdateByTagType ID3Tag *  tag,
flags_t  tag_type
 

Definition at line 211 of file c_wrapper.cpp.

References ID3_CATCH, and ID3E_NoError.

ID3_C_EXPORT void CCONV ID3TagConstIterator_Delete ID3TagConstIterator *  iter  ) 
 

Definition at line 366 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT const ID3Frame* CCONV ID3TagConstIterator_GetNext ID3TagConstIterator *  iter  ) 
 

Definition at line 375 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.

ID3_C_EXPORT void CCONV ID3TagIterator_Delete ID3TagIterator *  iter  ) 
 

Definition at line 346 of file c_wrapper.cpp.

References ID3_CATCH.

ID3_C_EXPORT ID3Frame* CCONV ID3TagIterator_GetNext ID3TagIterator *  iter  ) 
 

Definition at line 355 of file c_wrapper.cpp.

References ID3_CATCH, and NULL.


Generated on Wed Nov 22 16:50:11 2006 for id3lib by  doxygen 1.4.6