Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

src/c_wrapper.cpp File Reference

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


Define Documentation

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

Definition at line 43 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(), ID3TagConstIterator_Delete(), ID3TagConstIterator_GetNext(), ID3TagIterator_Delete(), ID3TagIterator_GetNext(), 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(), and ID3Tag_UpdateByTagType().


Function Documentation

ID3_C_EXPORT void ID3Field_AddASCII ( ID3Field * field,
const char * string )
 

Parameters:
field  
string  

Definition at line 633 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_AddUNICODE ( ID3Field * field,
const unicode_t * string )
 

Parameters:
field  
string  

Definition at line 585 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_Clear ( ID3Field * field )
 

Parameters:
field  

Definition at line 484 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_FromFile ( ID3Field * field,
const char * fileName )
 

Parameters:
field  
fileName  

Definition at line 663 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Field_GetASCII ( const ID3Field * field,
char * buffer,
size_t maxChars )
 

Parameters:
field  
buffer  
maxChars  

Definition at line 605 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Field_GetASCIIItem ( const ID3Field * field,
char * buffer,
size_t maxChars,
index_t itemNum )
 

Parameters:
field  
buffer  
maxChars  
itemNum  

Definition at line 618 of file c_wrapper.cpp.

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

Parameters:
field  
buffer  
buffLength  

Definition at line 653 of file c_wrapper.cpp.

ID3_C_EXPORT uint32 ID3Field_GetINT ( const ID3Field * field )
 

Parameters:
field  

Definition at line 532 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Field_GetNumTextItems ( const ID3Field * field )
 

Parameters:
field  

Definition at line 508 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Field_GetUNICODE ( const ID3Field * field,
unicode_t * buffer,
size_t maxChars )
 

Parameters:
field  
buffer  
maxChars  

Definition at line 556 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Field_GetUNICODEItem ( const ID3Field * field,
unicode_t * buffer,
size_t maxChars,
index_t itemNum )
 

Parameters:
field  
buffer  
maxChars  
itemNum  

Definition at line 570 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_SetASCII ( ID3Field * field,
const char * string )
 

Parameters:
field  
string  

Definition at line 595 of file c_wrapper.cpp.

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

Parameters:
field  
data  
size  

Definition at line 643 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_SetINT ( ID3Field * field,
uint32 data )
 

Parameters:
field  
data  

Definition at line 522 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_SetUNICODE ( ID3Field * field,
const unicode_t * string )
 

Parameters:
field  
string  

Definition at line 546 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Field_Size ( const ID3Field * field )
 

Parameters:
field  

Definition at line 494 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Field_ToFile ( const ID3Field * field,
const char * fileName )
 

Parameters:
field  
fileName  

Definition at line 673 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Frame_Clear ( ID3Frame * frame )
 

Parameters:
frame  

Definition at line 411 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Frame_Delete ( ID3Frame * frame )
 

Parameters:
frame  

Definition at line 401 of file c_wrapper.cpp.

ID3_C_EXPORT bool ID3Frame_GetCompression ( const ID3Frame * frame )
 

Parameters:
frame  

Definition at line 469 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Field * ID3Frame_GetField ( const ID3Frame * frame,
ID3_FieldID name )
 

Parameters:
frame  
name  

Definition at line 445 of file c_wrapper.cpp.

ID3_C_EXPORT ID3_FrameID ID3Frame_GetID ( const ID3Frame * frame )
 

Parameters:
frame  

Definition at line 431 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Frame * ID3Frame_New ( void )
 

Definition at line 385 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Frame * ID3Frame_NewID ( ID3_FrameID id )
 

Parameters:
id  

Definition at line 393 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Frame_SetCompression ( ID3Frame * frame,
bool comp )
 

Parameters:
frame  
comp  

Definition at line 459 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Frame_SetID ( ID3Frame * frame,
ID3_FrameID id )
 

Parameters:
frame  
id  

Definition at line 421 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3TagConstIterator_Delete ( ID3TagConstIterator * iter )
 

Parameters:
iter  

Definition at line 363 of file c_wrapper.cpp.

ID3_C_EXPORT const ID3Frame * ID3TagConstIterator_GetNext ( ID3TagConstIterator * iter )
 

Parameters:
iter  

Definition at line 372 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3TagIterator_Delete ( ID3TagIterator * iter )
 

Parameters:
iter  

Definition at line 343 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Frame * ID3TagIterator_GetNext ( ID3TagIterator * iter )
 

Parameters:
iter  

Definition at line 352 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_AddFrame ( ID3Tag * tag,
const ID3Frame * frame )
 

Parameters:
tag  
frame  

Definition at line 118 of file c_wrapper.cpp.

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

Parameters:
tag  
frames  
num  

Definition at line 138 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_AttachFrame ( ID3Tag * tag,
ID3Frame * frame )
 

Parameters:
tag  
frame  

Definition at line 128 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_Clear ( ID3Tag * tag )
 

Parameters:
tag  

Definition at line 65 of file c_wrapper.cpp.

ID3_C_EXPORT ID3TagConstIterator * ID3Tag_CreateConstIterator ( const ID3Tag * tag )
 

Parameters:
tag  

Definition at line 330 of file c_wrapper.cpp.

ID3_C_EXPORT ID3TagIterator * ID3Tag_CreateIterator ( ID3Tag * tag )
 

Parameters:
tag  

Definition at line 317 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_Delete ( ID3Tag * tag )
 

Parameters:
tag  

Definition at line 55 of file c_wrapper.cpp.

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

Parameters:
tag  
id  
fld  
data  

Definition at line 260 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Frame * ID3Tag_FindFrameWithID ( const ID3Tag * tag,
ID3_FrameID id )
 

Parameters:
tag  
id  

Definition at line 231 of file c_wrapper.cpp.

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

Parameters:
tag  
id  
fld  
data  

Definition at line 245 of file c_wrapper.cpp.

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

Parameters:
tag  
id  
fld  
data  

Definition at line 275 of file c_wrapper.cpp.

ID3_C_EXPORT bool ID3Tag_HasChanged ( const ID3Tag * tag )
 

Parameters:
tag  

Definition at line 75 of file c_wrapper.cpp.

ID3_C_EXPORT bool ID3Tag_HasTagType ( const ID3Tag * tag,
ID3_TagType tt )
 

Parameters:
tag  
tt  

Definition at line 304 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Tag_Link ( ID3Tag * tag,
const char * fileName )
 

Parameters:
tag  
fileName  

Definition at line 173 of file c_wrapper.cpp.

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

Parameters:
tag  
fileName  
flags  

Definition at line 184 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Tag * ID3Tag_New ( void )
 

Definition at line 46 of file c_wrapper.cpp.

ID3_C_EXPORT size_t ID3Tag_NumFrames ( const ID3Tag * tag )
 

Parameters:
tag  

Definition at line 290 of file c_wrapper.cpp.

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

Parameters:
tag  
header  
buffer  

Definition at line 160 of file c_wrapper.cpp.

ID3_C_EXPORT ID3Frame * ID3Tag_RemoveFrame ( ID3Tag * tag,
const ID3Frame * frame )
 

Parameters:
tag  
frame  

Definition at line 148 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_SetExtendedHeader ( ID3Tag * tag,
bool ext )
 

Parameters:
tag  
ext  

Definition at line 99 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_SetPadding ( ID3Tag * tag,
bool pad )
 

Parameters:
tag  
pad  

Definition at line 108 of file c_wrapper.cpp.

ID3_C_EXPORT void ID3Tag_SetUnsync ( ID3Tag * tag,
bool unsync )
 

Parameters:
tag  
unsync  

Definition at line 89 of file c_wrapper.cpp.

ID3_C_EXPORT ID3_Err ID3Tag_Strip ( ID3Tag * tag,
flags_t ulTagFlags )
 

Parameters:
tag  
ulTagFlags  

Definition at line 220 of file c_wrapper.cpp.

ID3_C_EXPORT ID3_Err ID3Tag_Update ( ID3Tag * tag )
 

Parameters:
tag  

Definition at line 197 of file c_wrapper.cpp.

ID3_C_EXPORT ID3_Err ID3Tag_UpdateByTagType ( ID3Tag * tag,
flags_t tag_type )
 

Parameters:
tag  
tag_type  

Definition at line 208 of file c_wrapper.cpp.


Generated at Sat Sep 8 15:51:11 2001 for id3lib by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001