libnjb 2.2.7

procedure.h
1 #ifndef __NJB__PROCEDURE__H
2 #define __NJB__PROCEDURE__H
3
4 #define NJB_BUFSIZ 650920
5
6 #define RETRY_MAX 10
7 #define RETRY_INTERVAL 1
8
9 #endif
10
NJB_Set_Bitmap
int NJB_Set_Bitmap(njb_t *njb, const unsigned char *bitmap)
Definition: procedure.c:3099
NJB_Songid_Findframe
njb_songid_frame_t * NJB_Songid_Findframe(njb_songid_t *song, const char *label)
Definition: songid.c:739
NJB_Discover
int NJB_Discover(njb_t *njbs, int limit, int *n)
Definition: procedure.c:108
njb_songid_frame_struct::label
char * label
Definition: libnjb.h:203
njb3_state_t::turbo_mode
u_int8_t turbo_mode
Definition: protocol3.h:298
destroy_eax_type
void destroy_eax_type(njb_eax_t *eax)
Definition: eax.c:319
NJB_PL_NEW
#define NJB_PL_NEW
Definition: libnjb.h:250
libnjb.h
njb3_state_t::hwRel
u_int8_t hwRel
Definition: protocol3.h:294
njb_playlist_struct::plid
u_int32_t plid
Definition: libnjb.h:255
NJB_Resume_Play
int NJB_Resume_Play(njb_t *njb)
Definition: procedure.c:2616
NJB_Get_Track_Tag
njb_songid_t * NJB_Get_Track_Tag(njb_t *njb)
Definition: procedure.c:503
njb_playlist_struct::ntracks
u_int32_t ntracks
Definition: libnjb.h:254
njb3_state_t
Definition: protocol3.h:265
datafile_set_name
int datafile_set_name(njb_datafile_t *df, const char *filename)
Definition: datafile.c:118
NJB_Get_Time
njb_time_t * NJB_Get_Time(njb_t *njb)
Definition: procedure.c:2079
njb_init_state
int njb_init_state(njb_t *njb)
Definition: protocol.c:43
__sub_depth
int __sub_depth
Definition: base.c:62
NJB_UC_UTF8
#define NJB_UC_UTF8
Definition: libnjb.h:147
NJB_Reset_Get_Datafile_Tag
void NJB_Reset_Get_Datafile_Tag(njb_t *njb)
Definition: procedure.c:811
NJB_Seek_Track
int NJB_Seek_Track(njb_t *njb, u_int32_t position)
Definition: procedure.c:2681
NJB_Send_Track
int NJB_Send_Track(njb_t *njb, const char *path, njb_songid_t *songid, NJB_Xfer_Callback *callback, void *data, u_int32_t *trackid)
Definition: procedure.c:1592
NJB_PL_UNCHANGED
#define NJB_PL_UNCHANGED
Definition: libnjb.h:251
NJB_Open
int NJB_Open(njb_t *njb)
Definition: procedure.c:130
njb3_update_string_frame
int njb3_update_string_frame(njb_t *njb, u_int32_t itemid, u_int16_t frameid, unsigned char *str)
Definition: protocol3.c:3728
njb_state_t
Definition: protocol.h:28
NJB_Get_Auxpower
int NJB_Get_Auxpower(njb_t *njb)
Definition: procedure.c:3366
NJB_Close
void NJB_Close(njb_t *njb)
Definition: procedure.c:184
datafile_set_size
void datafile_set_size(njb_datafile_t *df, u_int64_t size)
Definition: datafile.c:89
njb_state_t::fwMinor
u_int8_t fwMinor
Definition: protocol.h:43
NJB_Playlist_Gettrack
njb_playlist_track_t * NJB_Playlist_Gettrack(njb_playlist_t *pl)
Definition: playlist.c:377
NJB_Get_Battery_Level
int NJB_Get_Battery_Level(njb_t *njb)
Definition: procedure.c:3294
njb_datafile_struct
Definition: libnjb.h:275
njb3_state_t::fwMinor
u_int8_t fwMinor
Definition: protocol3.h:286
EO_TOOBIG
#define EO_TOOBIG
Definition: njb_error.h:22
njb_struct::protocol_state
void * protocol_state
Definition: libnjb.h:192
njb_struct
Definition: libnjb.h:182
njb_songid_frame_struct
Definition: libnjb.h:202
NJB_Ping
void NJB_Ping(njb_t *njb)
Definition: procedure.c:3131
NJB_Get_SDMI_ID
int NJB_Get_SDMI_ID(njb_t *njb, u_int8_t *sdmiid)
Definition: procedure.c:3411
NJB_Create_Folder
int NJB_Create_Folder(njb_t *njb, const char *name, u_int32_t *folderid)
Definition: procedure.c:1872
njb_close
void njb_close(njb_t *njb)
Definition: base.c:147
njb3_get_file_block
int njb3_get_file_block(njb_t *njb, unsigned char *data, u_int32_t maxsize)
Definition: protocol3.c:3342
njb_get_usb_device_name
char * njb_get_usb_device_name(njb_t *njb)
Definition: base.c:369
njb3_state_t::fwRel
u_int8_t fwRel
Definition: protocol3.h:288
NJB_Get_EAX_Type
njb_eax_t * NJB_Get_EAX_Type(njb_t *njb)
Definition: procedure.c:1952
NJB_TYPE_UINT32
#define NJB_TYPE_UINT32
Definition: libnjb.h:95
njb_open
int njb_open(njb_t *njb)
Definition: base.c:290
NJB_Reset_Get_Track_Tag
void NJB_Reset_Get_Track_Tag(njb_t *njb)
Definition: procedure.c:460
njbttaghdr_t
Definition: protocol.h:11
datafile_pack
unsigned char * datafile_pack(njb_datafile_t *df, u_int32_t *size)
Definition: datafile.c:238
NJB_Destroy_EAX_Type
void NJB_Destroy_EAX_Type(njb_eax_t *eax)
Definition: procedure.c:1978
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
njb3_announce_firmware
int njb3_announce_firmware(njb_t *njb, u_int32_t size)
Definition: protocol3.c:4519
EO_TMPFILE
#define EO_TMPFILE
Definition: njb_error.h:29
njb3_reset_get_datafile_tag
int njb3_reset_get_datafile_tag(njb_t *njb)
Definition: protocol3.c:3019
njb_songid_struct
Definition: libnjb.h:222
NJB_Elapsed_Time
int NJB_Elapsed_Time(njb_t *njb, u_int16_t *elapsed, int *change)
Definition: procedure.c:2740
NJB_Replace_Track_Tag
int NJB_Replace_Track_Tag(njb_t *njb, u_int32_t trackid, njb_songid_t *songid)
Definition: procedure.c:2895
njb_songid_frame_struct::u_int16_val
u_int16_t u_int16_val
Definition: libnjb.h:211
OWNER_STRING_LENGTH
#define OWNER_STRING_LENGTH
Definition: libnjb.h:160
NJB_DEVICE_NJB3
#define NJB_DEVICE_NJB3
Definition: libnjb.h:74
NJB_Playlist_Reset_Gettrack
void NJB_Playlist_Reset_Gettrack(njb_playlist_t *pl)
Definition: playlist.c:354
NJB_Delete_Datafile
int NJB_Delete_Datafile(njb_t *njb, u_int32_t fileid)
Definition: procedure.c:2453
strtoutf8
char * strtoutf8(const unsigned char *str)
Definition: unicode.c:117
NJB_Update_Playlist
int NJB_Update_Playlist(njb_t *njb, njb_playlist_t *pl)
Definition: procedure.c:2206
njb_receive_file_block
u_int32_t njb_receive_file_block(njb_t *njb, u_int32_t offset, u_int32_t bsize, void *bp)
Definition: protocol.c:814
NJB_Adjust_EAX
void NJB_Adjust_EAX(njb_t *njb, u_int16_t eaxid, u_int16_t patchindex, int16_t scalevalue)
Definition: procedure.c:2008
njb_eax_struct
Definition: libnjb.h:349
njb_read_eaxtypes
void njb_read_eaxtypes(njb_t *njb, u_int32_t size)
Definition: protocol.c:1199
njb_capture
int njb_capture(njb_t *njb, int which)
Definition: protocol.c:373
EO_SRCFILE
#define EO_SRCFILE
Definition: njb_error.h:33
NJB_Get_Disk_Usage
int NJB_Get_Disk_Usage(njb_t *njb, u_int64_t *btotal, u_int64_t *bfree)
Definition: procedure.c:657
protocol3.h
NJB_Set_Unicode
void NJB_Set_Unicode(int unicode_flag)
Definition: procedure.c:2833
NJB_Songid_Destroy
void NJB_Songid_Destroy(njb_songid_t *song)
Definition: songid.c:673
EO_NOMEM
#define EO_NOMEM
Definition: njb_error.h:14
FR_FNAME
#define FR_FNAME
Definition: libnjb.h:120
NJB_DEVICE_NJB1
#define NJB_DEVICE_NJB1
Definition: libnjb.h:72
njb3_reset_get_playlist_tag
int njb3_reset_get_playlist_tag(njb_t *njb)
Definition: protocol3.c:2814
NJB_Get_Battery_Charging
int NJB_Get_Battery_Charging(njb_t *njb)
Definition: procedure.c:3328
NJB_Reset_Get_EAX_Type
void NJB_Reset_Get_EAX_Type(njb_t *njb)
Definition: procedure.c:1915
FR_CODEC
#define FR_CODEC
Definition: libnjb.h:114
NJB_Get_Datafile_Tag
njb_datafile_t * NJB_Get_Datafile_Tag(njb_t *njb)
Definition: procedure.c:846
njb_state_t::power
u_int8_t power
Definition: protocol.h:37
owner_string
unsigned char owner_string[OWNER_STRING_LENGTH+1]
Definition: libnjb.h:162
njb_get_library_counter
int njb_get_library_counter(njb_t *njb, njblibctr_t *lcount)
Definition: protocol.c:241
NJB_Set_Time
int NJB_Set_Time(njb_t *njb, njb_time_t *time)
Definition: procedure.c:2113
NJB_Get_Track_fd
int NJB_Get_Track_fd(njb_t *njb, u_int32_t fileid, u_int32_t size, int fd, NJB_Xfer_Callback *callback, void *data)
Definition: procedure.c:980
NJB_DEVICE_NJBZEN
#define NJB_DEVICE_NJBZEN
Definition: libnjb.h:75
NJB_PL_CHTRACKS
#define NJB_PL_CHTRACKS
Definition: libnjb.h:253
EO_BADNJBID
#define EO_BADNJBID
Definition: njb_error.h:18
NJB_Get_Owner_String
char * NJB_Get_Owner_String(njb_t *njb)
Definition: procedure.c:697
njb3_get_firmware_confirmation
int njb3_get_firmware_confirmation(njb_t *njb)
Definition: protocol3.c:4569
njb_state_t::fwMajor
u_int8_t fwMajor
Definition: protocol.h:42
NJB_Get_Hardware_Revision
int NJB_Get_Hardware_Revision(njb_t *njb, u_int8_t *major, u_int8_t *minor, u_int8_t *release)
Definition: procedure.c:3542
njb_ping
int njb_ping(njb_t *njb)
Definition: protocol.c:285
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
EO_XFERDENIED
#define EO_XFERDENIED
Definition: njb_error.h:30
njb3_power_status
int njb3_power_status(njb_t *njb, int *battery_level, int *charging, int *ac_power)
Definition: protocol3.c:403
NJB_Datafile_Destroy
void NJB_Datafile_Destroy(njb_datafile_t *df)
Definition: datafile.c:52
NJB_Send_Firmware
int NJB_Send_Firmware(njb_t *njb, const char *path, NJB_Xfer_Callback *callback, void *data)
Definition: procedure.c:3240
NJB_Get_Track
int NJB_Get_Track(njb_t *njb, u_int32_t fileid, u_int32_t size, const char *path, NJB_Xfer_Callback *callback, void *data)
Definition: procedure.c:904
NJB_Songid_New
njb_songid_t * NJB_Songid_New(void)
Definition: songid.c:42
NJB_Get_Device_Name
const char * NJB_Get_Device_Name(njb_t *njb, int type)
Definition: procedure.c:3456
NJB_Capture
int NJB_Capture(njb_t *njb)
Definition: procedure.c:223
NJB_Delete_Playlist
int NJB_Delete_Playlist(njb_t *njb, u_int32_t plid)
Definition: procedure.c:2167
songid_pack
unsigned char * songid_pack(njb_songid_t *song, u_int32_t *tagsize)
Definition: songid.c:233
NJB_Reset_Get_Playlist
void NJB_Reset_Get_Playlist(njb_t *njb)
Definition: procedure.c:556
njb_set_unicode
void njb_set_unicode(int flag)
Definition: unicode.c:35
njb_discover
int njb_discover(njb_t *njbs, int limit, int *count)
Definition: base.c:89
njb3_request_file_chunk
int njb3_request_file_chunk(njb_t *njb, u_int32_t fileid, u_int32_t offset)
Definition: protocol3.c:3239
njb_set_debug
void njb_set_debug(int flags)
Definition: base.c:350
njb_struct::device_type
int device_type
Definition: libnjb.h:189
njblibctr_t
Definition: protocol.h:6
NJB_Get_Keys
njb_keyval_t * NJB_Get_Keys(njb_t *njb)
Definition: procedure.c:3166
njb_time_struct
Definition: libnjb.h:403
NJB_Get_NJB1_Libcounter
u_int64_t NJB_Get_NJB1_Libcounter(njb_t *njb)
Definition: procedure.c:3203
njb3_init_state
int njb3_init_state(njb_t *njb)
Definition: protocol3.c:41
EO_WRFILE
#define EO_WRFILE
Definition: njb_error.h:31
NJB_DEVICE_NJBZENXTRA
#define NJB_DEVICE_NJBZENXTRA
Definition: libnjb.h:78
njb_playlist_track_struct::trackid
u_int32_t trackid
Definition: libnjb.h:238
NJB_Get_Bitmap_Dimensions
int NJB_Get_Bitmap_Dimensions(njb_t *njb, int *x, int *y, int *bytes)
Definition: procedure.c:3043
NJB_Get_Playlist
njb_playlist_t * NJB_Get_Playlist(njb_t *njb)
Definition: procedure.c:592
njb_state_t::productName
char productName[33]
Definition: protocol.h:41
njb3_set_bitmap
int njb3_set_bitmap(njb_t *njb, u_int16_t x_size, u_int16_t y_size, const unsigned char *bitmap)
Definition: protocol3.c:950
njb_playlist_struct
Definition: libnjb.h:247
njb_songid_frame_struct::u_int32_val
u_int32_t u_int32_val
Definition: libnjb.h:212
NJB_DEVICE_NJB2
#define NJB_DEVICE_NJB2
Definition: libnjb.h:73
NJB_Get_Extended_Tags
void NJB_Get_Extended_Tags(njb_t *njb, int extended)
Definition: procedure.c:424
NJB_DEVICE_NJBZEN2
#define NJB_DEVICE_NJBZEN2
Definition: libnjb.h:76
NJB_Handshake
int NJB_Handshake(njb_t *njb)
Definition: procedure.c:297
NJB_Songid_Getframe
njb_songid_frame_t * NJB_Songid_Getframe(njb_songid_t *song)
Definition: songid.c:720
NJB_Destroy_Time
void NJB_Destroy_Time(njb_time_t *time)
Definition: procedure.c:2152
NJB_Get_Firmware_Revision
int NJB_Get_Firmware_Revision(njb_t *njb, u_int8_t *major, u_int8_t *minor, u_int8_t *release)
Definition: procedure.c:3509
NJB_Songid_Reset_Getframe
void NJB_Songid_Reset_Getframe(njb_songid_t *song)
Definition: songid.c:707
njb3_get_codecs
int njb3_get_codecs(njb_t *njb)
Definition: protocol3.c:223
njb_get_disk_usage
int njb_get_disk_usage(njb_t *njb, u_int64_t *total, u_int64_t *free_bytes)
Definition: protocol.c:599
njb3_send_firmware_chunk
u_int32_t njb3_send_firmware_chunk(njb_t *njb, u_int32_t chunksize, unsigned char *chunk)
Definition: protocol3.c:4545
NJB_PL_CHNAME
#define NJB_PL_CHNAME
Definition: libnjb.h:252
NJB_Delete_Track
int NJB_Delete_Track(njb_t *njb, u_int32_t trackid)
Definition: procedure.c:2415
njb_songid_frame_struct::strval
char * strval
Definition: libnjb.h:209
njb3_create_playlist
int njb3_create_playlist(njb_t *njb, char *name, u_int32_t *plid)
Definition: protocol3.c:3865
datafile_set_folder
int datafile_set_folder(njb_datafile_t *df, const char *folder)
Definition: datafile.c:142
NJB_TYPE_UINT16
#define NJB_TYPE_UINT16
Definition: libnjb.h:94
NJB_DEVICE_NJBZENNX
#define NJB_DEVICE_NJBZENNX
Definition: libnjb.h:77
njbplhdr_t
Definition: protocol.h:16
njb_keyval_struct
Definition: libnjb.h:417
njb_songid_frame_struct::type
u_int8_t type
Definition: libnjb.h:204
njb_get_nexteax
njb_eax_t * njb_get_nexteax(njb_t *njb)
Definition: protocol.c:1267
njb_state_t::sdmiid
u_int8_t sdmiid[16]
Definition: protocol.h:39
njbdfhdr_t
Definition: protocol.h:21
njb3_state_t::fwMajor
u_int8_t fwMajor
Definition: protocol3.h:284
NJB_Stop_Play
int NJB_Stop_Play(njb_t *njb)
Definition: procedure.c:2643
NJB_DEVICE_NJBZENTOUCH
#define NJB_DEVICE_NJBZENTOUCH
Definition: libnjb.h:80
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
njb_verify_last_command
int njb_verify_last_command(njb_t *njb)
Definition: protocol.c:342
NJB_Play_Track
int NJB_Play_Track(njb_t *njb, u_int32_t trackid)
Definition: procedure.c:2503
njb3_state_t::eax_processor_active
u_int8_t eax_processor_active
Definition: protocol3.h:280
njb3_state_t::hwMajor
u_int8_t hwMajor
Definition: protocol3.h:290
njb3_control_eax_processor
int njb3_control_eax_processor(njb_t *njb, u_int16_t state)
Definition: protocol3.c:4028
EO_BAD_NJB1_REPLACE
#define EO_BAD_NJB1_REPLACE
Definition: njb_error.h:36
NJB_Songid_Frame_New_String
njb_songid_frame_t * NJB_Songid_Frame_New_String(const char *label, const char *value)
Definition: songid.c:840
NJB_Xfer_Callback
int NJB_Xfer_Callback(u_int64_t sent, u_int64_t total, const char *buf, unsigned len, void *data)
Definition: libnjb.h:432
EO_INVALID
#define EO_INVALID
Definition: njb_error.h:34
EO_TIMEOUT
#define EO_TIMEOUT
Definition: njb_error.h:24
NJB_TURBO_OFF
#define NJB_TURBO_OFF
Definition: libnjb.h:155
njb3_update_tag
int njb3_update_tag(njb_t *njb, u_int32_t itemid, unsigned char *ptag, u_int32_t ptagsize)
Definition: protocol3.c:3798
_file_time
int _file_time(njb_t *njb, const char *path, time_t *ts)
Definition: procedure.c:2770
njb_playlist_track_struct
Definition: libnjb.h:237
njb3_add_multiple_tracks_to_playlist
int njb3_add_multiple_tracks_to_playlist(njb_t *njb, u_int32_t *plid, u_int32_t *trids, u_int16_t ntracks)
Definition: protocol3.c:3944
NJB_Set_Debug
void NJB_Set_Debug(int debug_flags)
Definition: procedure.c:2819
njb_songid_frame_struct::data
union njb_songid_frame_struct::@0 data
NJB_Send_File
int NJB_Send_File(njb_t *njb, const char *path, const char *name, const char *folder, NJB_Xfer_Callback *callback, void *data, u_int32_t *fileid)
Definition: procedure.c:1723
songid_sanity_check
int songid_sanity_check(njb_t *njb, njb_songid_t *songid)
Definition: songid.c:758
njb3_state_t::hwMinor
u_int8_t hwMinor
Definition: protocol3.h:292
NJB_Queue_Track
int NJB_Queue_Track(njb_t *njb, u_int32_t trackid)
Definition: procedure.c:2551
datafile_pack3
unsigned char * datafile_pack3(njb_t *njb, njb_datafile_t *df, u_int32_t *size)
Definition: datafile.c:321
NJB_Release
int NJB_Release(njb_t *njb)
Definition: procedure.c:266
njb_set_library_counter
int njb_set_library_counter(njb_t *njb, u_int64_t count)
Definition: protocol.c:207
_file_size
int _file_size(njb_t *njb, const char *path, u_int64_t *size)
Definition: procedure.c:2793
EO_BADCOUNT
#define EO_BADCOUNT
Definition: njb_error.h:19
njb_playlist_struct::name
char * name
Definition: libnjb.h:248
NJB_Set_Owner_String
int NJB_Set_Owner_String(njb_t *njb, const char *name)
Definition: procedure.c:746
NJB_Set_Turbo_Mode
int NJB_Set_Turbo_Mode(njb_t *njb, u_int8_t mode)
Definition: procedure.c:3580
NJB_Pause_Play
int NJB_Pause_Play(njb_t *njb)
Definition: procedure.c:2590
datafile_set_time
void datafile_set_time(njb_datafile_t *df, time_t ts)
Definition: datafile.c:103
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
njb3_destroy_state
void njb3_destroy_state(njb_t *njb)
Definition: protocol3.c:4593
njb3_state_t::product_name
char * product_name
Definition: protocol3.h:282
NJB_TYPE_STRING
#define NJB_TYPE_STRING
Definition: libnjb.h:93
njb_playlist_struct::_state
int _state
Definition: libnjb.h:249
EO_ABORTED
#define EO_ABORTED
Definition: njb_error.h:25
EO_XFERERROR
#define EO_XFERERROR
Definition: njb_error.h:32