17 #define LIBNJB_VERSION 2.2.6
19 #define LIBNJB_COMPILED_FOR_LIBUSB 1
25 #define snprintf _snprintf
26 #define ssize_t SSIZE_T
29 #include <sys/types.h>
35 typedef unsigned char u_int8_t;
36 typedef __int16 int16_t;
37 typedef unsigned __int16 u_int16_t;
38 typedef __int32 int32_t;
39 typedef unsigned __int32 u_int32_t;
40 typedef unsigned __int64 u_int64_t;
49 #define u_int8_t uint8_t
50 #define u_int16_t uint16_t
51 #define u_int32_t uint32_t
52 #define u_int64_t uint64_t
60 #define NJB_MAX_DEVICES 0xFF
72 #define NJB_DEVICE_NJB1 0x00
73 #define NJB_DEVICE_NJB2 0x01
74 #define NJB_DEVICE_NJB3 0x02
75 #define NJB_DEVICE_NJBZEN 0x03
76 #define NJB_DEVICE_NJBZEN2 0x04
77 #define NJB_DEVICE_NJBZENNX 0x05
78 #define NJB_DEVICE_NJBZENXTRA 0x06
79 #define NJB_DEVICE_DELLDJ 0x07
80 #define NJB_DEVICE_NJBZENTOUCH 0x08
81 #define NJB_DEVICE_NJBZENMICRO 0x09
82 #define NJB_DEVICE_DELLDJ2 0x0a
83 #define NJB_DEVICE_POCKETDJ 0x0b
84 #define NJB_DEVICE_ZENSLEEK 0x0c
85 #define NJB_DEVICE_CREATIVEZEN 0x0d
86 #define NJB_DEVICE_DELLDJ3 0x0e
93 #define NJB_TYPE_STRING 0x00
94 #define NJB_TYPE_UINT16 0x02
95 #define NJB_TYPE_UINT32 0x03
102 #define NJB_CODEC_MP3 "MP3"
103 #define NJB_CODEC_WMA "WMA"
104 #define NJB_CODEC_WAV "WAV"
105 #define NJB_CODEC_AA "AA"
112 #define FR_SIZE "FILE SIZE"
113 #define FR_LENGTH "LENGTH"
114 #define FR_CODEC "CODEC"
115 #define FR_TITLE "TITLE"
116 #define FR_ALBUM "ALBUM"
117 #define FR_GENRE "GENRE"
118 #define FR_ARTIST "ARTIST"
119 #define FR_TRACK "TRACK NUM"
120 #define FR_FNAME "FNAME"
121 #define FR_YEAR "YEAR"
122 #define FR_PROTECTED "PlayOnly"
124 #define FR_BITRATE "BITRATE"
125 #define FR_COMMENT "COMMENT"
127 #define FR_FOLDER "FOLDER"
136 #define DD_USBBLKLIM 2
138 #define DD_SUBTRACE 8
146 #define NJB_UC_8859 0
147 #define NJB_UC_UTF8 1
155 #define NJB_TURBO_OFF 0
156 #define NJB_TURBO_ON 1
160 #define OWNER_STRING_LENGTH 128
251 #define NJB_PL_UNCHANGED 1
252 #define NJB_PL_CHNAME 2
253 #define NJB_PL_CHTRACKS 3
256 njb_playlist_track_t *first;
257 njb_playlist_track_t *last;
258 njb_playlist_track_t *cur;
259 njb_playlist_t *nextpl;
269 #define NJB_FILEFLAGS_REGULAR_FILE 0x80000000U
341 NJB_EAX_SLIDER_CONTROL,
342 NJB_EAX_FIXED_OPTION_CONTROL
374 int16_t current_value;
421 unsigned char deviceid[16];
433 const char* buf,
unsigned len,
void *data);
489 #define NJB_Songid_Frame_New_Title(a) NJB_Songid_Frame_New_String(FR_TITLE, a)
490 #define NJB_Songid_Frame_New_Album(a) NJB_Songid_Frame_New_String(FR_ALBUM, a)
491 #define NJB_Songid_Frame_New_Genre(a) NJB_Songid_Frame_New_String(FR_GENRE, a)
492 #define NJB_Songid_Frame_New_Artist(a) NJB_Songid_Frame_New_String(FR_ARTIST, a)
493 #define NJB_Songid_Frame_New_Length(a) NJB_Songid_Frame_New_Uint16(FR_LENGTH, a)
494 #define NJB_Songid_Frame_New_Filesize(a) NJB_Songid_Frame_New_Uint32(FR_SIZE, a)
495 #define NJB_Songid_Frame_New_Tracknum(a) NJB_Songid_Frame_New_Uint16(FR_TRACK, a)
496 #define NJB_Songid_Frame_New_Year(a) NJB_Songid_Frame_New_Uint16(FR_YEAR, a)
497 #define NJB_Songid_Frame_New_Filename(a) NJB_Songid_Frame_New_String(FR_FNAME, a)
498 #define NJB_Songid_Frame_New_Protected(a) NJB_Songid_Frame_New_Uint16(FR_PROTECTED, a)
500 #define NJB_Songid_Frame_New_Bitrate(a) NJB_Songid_Frame_New_Uint32(FR_BITRATE, a)
501 #define NJB_Songid_Frame_New_Comment(a) NJB_Songid_Frame_New_String(FR_COMMENT, a)
503 #define NJB_Songid_Frame_New_Folder(a) NJB_Songid_Frame_New_String(FR_FOLDER, a)
530 #define NJB_PL_START 1
546 #define NJB_Get_File NJB_Get_Track
547 #define NJB_Get_File_fd NJB_Get_Track_fd
562 u_int16_t patchindex,