libnjb: Error codes

libnjb 2.2.7

Macros
Error codes

## Macros
#define | EO_USBCTL 1
#define | EO_USBBLK 2
#define | EO_RDSHORT 3
#define | EO_NOMEM 4
#define | EO_BADDATA 5
#define | EO_EOM 6
#define | EO_BADSTATUS 7
#define | EO_BADNJBID 8
#define | EO_BADCOUNT 9
#define | EO_WRSHORT 10
#define | EO_NULLTMP 11
#define | EO_TOOBIG 12
#define | EO_CANTMOVE 13
#define | EO_TIMEOUT 14
#define | EO_ABORTED 15
#define | EO_EOF 16
#define | EO_DEVICE 17
#define | EO_INIT 18
#define | EO_TMPFILE 19
#define | EO_XFERDENIED 20
#define | EO_WRFILE 21
#define | EO_XFERERROR 22
#define | EO_SRCFILE 23
#define | EO_INVALID 24
#define | EO_AGAIN 25
#define | EO_BAD_NJB1_REPLACE 26

## Detailed Description

## Macro Definition Documentation

## § EO_ABORTED

#define EO_ABORTED 15

operation aborted

## § EO_AGAIN

#define EO_AGAIN 25

resource temporarily unavailable

## § EO_BAD_NJB1_REPLACE

#define EO_BAD_NJB1_REPLACE 26

too little info to replace tag on NJB1

Referenced by NJB_Replace_Track_Tag().

## § EO_BADCOUNT

#define EO_BADCOUNT 9

library count mismatch

Referenced by NJB_Capture().

## § EO_BADDATA

#define EO_BADDATA 5

invalid data

## § EO_BADNJBID

#define EO_BADNJBID 8

Jukebox ID has changed

## § EO_BADSTATUS

#define EO_BADSTATUS 7

bad status from Jukebox

Referenced by njb_capture().

## § EO_CANTMOVE

#define EO_CANTMOVE 13

can't move file to destination

## § EO_DEVICE

#define EO_DEVICE 17

can't open device for read/write

## § EO_EOF

#define EO_EOF 16

received EOF

## § EO_EOM

#define EO_EOM 6

end of data

## § EO_INIT

#define EO_INIT 18

can't initialize device

## § EO_INVALID

#define EO_INVALID 24

invalid arguments

Referenced by NJB_Send_File(), and NJB_Send_Firmware().

## § EO_NOMEM

#define EO_NOMEM 4

out of memory

Referenced by datafile_pack3(), new_folder_pack3(), njb3_add_multiple_tracks_to_playlist(), njb3_create_playlist(), njb3_set_bitmap(), njb3_update_string_frame(), njb3_update_tag(), and njb_read_eaxtypes().

## § EO_NULLTMP

#define EO_NULLTMP 11

temporary transfer dir not defined

## § EO_RDSHORT

#define EO_RDSHORT 3

short read on USB data pipe

Referenced by njb_ping(), and njb_read_eaxtypes().

## § EO_SRCFILE

#define EO_SRCFILE 23

can't read source file

Referenced by NJB_Send_Firmware(), and NJB_Send_Track().

## § EO_TIMEOUT

#define EO_TIMEOUT 14

operation timed out

## § EO_TMPFILE

#define EO_TMPFILE 19

can't create temporary file

Referenced by NJB_Get_Track().

## § EO_TOOBIG

#define EO_TOOBIG 12

block size too big

Referenced by njb_receive_file_block(), and NJB_Send_Track().

## § EO_USBBLK

#define EO_USBBLK 2

I/O failure on USB data pipe

Referenced by njb3_get_file_block(), njb_ping(), njb_read_eaxtypes(), and njb_receive_file_block().

## § EO_USBCTL

#define EO_USBCTL 1

I/O failure on USB control pipe

Referenced by njb_capture(), njb_get_datafile_header(), njb_get_disk_usage(), njb_get_library_counter(), njb_get_playlist_header(), njb_get_track_tag_header(), njb_ping(), njb_read_eaxtypes(), njb_receive_file_block(), njb_set_library_counter(), and njb_verify_last_command().

## § EO_WRFILE

#define EO_WRFILE 21

error writing output file

## § EO_WRSHORT

#define EO_WRSHORT 10

short write on USB data pipe

## § EO_XFERDENIED

#define EO_XFERDENIED 20

transfer request denied

Referenced by NJB_Send_Track().

## § EO_XFERERROR

#define EO_XFERERROR 22

bad transfer completion status