libnjb 2.2.7

songid.h
1 #ifndef __NJB__SONGID__H
2 #define __NJB__SONGID__H
3
4 #define ID_DATA_ASCII 0
5 #define ID_DATA_BIN 1
6 #define ID_DATA_UNI 2
7
8 /* Eventually we move all private songid_t processing in here */
9
10 njb_songid_t *songid_unpack (void *data, size_t nbytes);
11 unsigned char *songid_pack (njb_songid_t *song, u_int32_t *size);
12 unsigned char *songid_pack3 (njb_songid_t *song, u_int32_t *size);
13 int songid_sanity_check(njb_t *njb, njb_songid_t *songid);
14
15 #endif
NJB_Songid_Findframe
njb_songid_frame_t * NJB_Songid_Findframe(njb_songid_t *song, const char *label)
Definition: songid.c:739
njb_songid_frame_struct::label
char * label
Definition: libnjb.h:203
FR_UNI_GENRE
#define FR_UNI_GENRE
Definition: songid.c:28
FR_UNI_ARTIST
#define FR_UNI_ARTIST
Definition: songid.c:29
libnjb.h
FR_UNI_FNAME
#define FR_UNI_FNAME
Definition: songid.c:31
njb_songid_struct::cur
njb_songid_frame_t * cur
Definition: libnjb.h:227
FR_GENRE
#define FR_GENRE
Definition: libnjb.h:117
NJB_UC_UTF8
#define NJB_UC_UTF8
Definition: libnjb.h:147
NJB_CODEC_MP3
#define NJB_CODEC_MP3
Definition: libnjb.h:102
njb_struct
Definition: libnjb.h:182
from_16bit_to_njb1_bytes
void from_16bit_to_njb1_bytes(u_int16_t val, unsigned char *dp)
Definition: byteorder.c:183
njb_songid_frame_struct
Definition: libnjb.h:202
FR_PROTECTED
#define FR_PROTECTED
Definition: libnjb.h:122
njb_unicode_flag
int njb_unicode_flag
Definition: unicode.c:24
from_32bit_to_njb3_bytes
void from_32bit_to_njb3_bytes(u_int32_t val, unsigned char *dp)
Definition: byteorder.c:129
njb_songid_struct::last
njb_songid_frame_t * last
Definition: libnjb.h:226
njb_songid_struct::first
njb_songid_frame_t * first
Definition: libnjb.h:225
NJB_TYPE_UINT32
#define NJB_TYPE_UINT32
Definition: libnjb.h:95
FR_ALBUM
#define FR_ALBUM
Definition: libnjb.h:116
FR_LENGTH
#define FR_LENGTH
Definition: libnjb.h:113
FR_SIZE
#define FR_SIZE
Definition: libnjb.h:112
NJB_Songid_Addframe
void NJB_Songid_Addframe(njb_songid_t *song, njb_songid_frame_t *frame)
Definition: songid.c:651
njb_songid_struct
Definition: libnjb.h:222
njb_songid_frame_struct::u_int16_val
u_int16_t u_int16_val
Definition: libnjb.h:211
njb_songid_struct::next
njb_songid_t * next
Definition: libnjb.h:228
strtoutf8
char * strtoutf8(const unsigned char *str)
Definition: unicode.c:117
NJB_Songid_Frame_New_Codec
njb_songid_frame_t * NJB_Songid_Frame_New_Codec(const char *value)
Definition: songid.c:871
FR_ARTIST
#define FR_ARTIST
Definition: libnjb.h:118
njb_songid_struct::nframes
u_int16_t nframes
Definition: libnjb.h:224
protocol3.h
NJB_Songid_Destroy
void NJB_Songid_Destroy(njb_songid_t *songid)
Definition: songid.c:673
FR_FNAME
#define FR_FNAME
Definition: libnjb.h:120
FR_CODEC
#define FR_CODEC
Definition: libnjb.h:114
njb_songid_frame_struct::next
njb_songid_frame_t * next
Definition: libnjb.h:215
FR_UNI_TITLE
#define FR_UNI_TITLE
Definition: songid.c:26
strtoucs2
unsigned char * strtoucs2(const unsigned char *str)
Definition: unicode.c:255
songid_pack3
unsigned char * songid_pack3(njb_songid_t *song, u_int32_t *tagsize)
Definition: songid.c:449
NJB_CODEC_AA
#define NJB_CODEC_AA
Definition: libnjb.h:105
NJB_Songid_New
njb_songid_t * NJB_Songid_New(void)
Definition: songid.c:42
njb1_bytes_to_32bit
u_int32_t njb1_bytes_to_32bit(unsigned char *dp)
Definition: byteorder.c:72
ucs2strlen
int ucs2strlen(const unsigned char *unicstr)
Definition: unicode.c:50
songid_pack
unsigned char * songid_pack(njb_songid_t *song, u_int32_t *tagsize)
Definition: songid.c:233
ucs2tostr
char * ucs2tostr(const unsigned char *unicstr)
Definition: unicode.c:183
from_32bit_to_njb1_bytes
void from_32bit_to_njb1_bytes(u_int32_t val, unsigned char *dp)
Definition: byteorder.c:112
FR_TRACK
#define FR_TRACK
Definition: libnjb.h:119
NJB_CODEC_WMA
#define NJB_CODEC_WMA
Definition: libnjb.h:103
FR_YEAR
#define FR_YEAR
Definition: libnjb.h:121
njb_songid_frame_struct::u_int32_val
u_int32_t u_int32_val
Definition: libnjb.h:212
NJB_Songid_Getframe
njb_songid_frame_t * NJB_Songid_Getframe(njb_songid_t *song)
Definition: songid.c:720
NJB_Songid_Reset_Getframe
void NJB_Songid_Reset_Getframe(njb_songid_t *song)
Definition: songid.c:707
songid_unpack
njb_songid_t * songid_unpack(void *data, size_t nbytes)
Definition: songid.c:68
njb_songid_frame_struct::strval
char * strval
Definition: libnjb.h:209
NJB_TYPE_UINT16
#define NJB_TYPE_UINT16
Definition: libnjb.h:94
njb_songid_frame_struct::type
u_int8_t type
Definition: libnjb.h:204
NJB_CODEC_WAV
#define NJB_CODEC_WAV
Definition: libnjb.h:104
utf8tostr
char * utf8tostr(const unsigned char *str)
Definition: unicode.c:147
NJB_Songid_Frame_New_Uint16
njb_songid_frame_t * NJB_Songid_Frame_New_Uint16(const char *label, u_int16_t value)
Definition: songid.c:912
FR_UNI_ALBUM
#define FR_UNI_ALBUM
Definition: songid.c:27
from_16bit_to_njb3_bytes
void from_16bit_to_njb3_bytes(u_int16_t val, unsigned char *dp)
Definition: byteorder.c:198
NJB_Songid_Frame_New_String
njb_songid_frame_t * NJB_Songid_Frame_New_String(const char *label, const char *value)
Definition: songid.c:840
njb1_bytes_to_16bit
u_int16_t njb1_bytes_to_16bit(unsigned char *dp)
Definition: byteorder.c:146
NJB_Songid_Frame_Destroy
void NJB_Songid_Frame_Destroy(njb_songid_frame_t *frame)
Definition: songid.c:976
FR_TITLE
#define FR_TITLE
Definition: libnjb.h:115
njb_songid_frame_struct::data
union njb_songid_frame_struct::@0 data
songid_sanity_check
int songid_sanity_check(njb_t *njb, njb_songid_t *songid)
Definition: songid.c:758
FR_FOLDER
#define FR_FOLDER
Definition: libnjb.h:127
NJB_Songid_Frame_New_Uint32
njb_songid_frame_t * NJB_Songid_Frame_New_Uint32(const char *label, u_int32_t value)
Definition: songid.c:945
NJB_TYPE_STRING
#define NJB_TYPE_STRING
Definition: libnjb.h:93