libnjb: Error codes

# Error codes

## Defines
#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

## Define Documentation

#define EO_ABORTED 15

operation aborted

Referenced by NJB_Get_Track_fd().

#define EO_AGAIN 25

resource temporarily unavailable

#define EO_BAD_NJB1_REPLACE 26

too little info to replace tag on NJB1

Referenced by NJB_Replace_Track_Tag().

#define EO_BADCOUNT 9

library count mismatch

Referenced by NJB_Capture(), NJB_Delete_Datafile(), NJB_Delete_Track(), NJB_Handshake(), and NJB_Replace_Track_Tag().

#define EO_BADDATA 5

invalid data

#define EO_BADNJBID 8

Jukebox ID has changed

Referenced by NJB_Handshake().

#define EO_BADSTATUS 7

bad status from Jukebox

Referenced by njb3_add_multiple_tracks_to_playlist(), njb3_control_eax_processor(), njb3_create_playlist(), njb3_get_codecs(), njb3_get_firmware_confirmation(), njb3_power_status(), njb3_request_file_chunk(), njb3_set_bitmap(), njb3_update_16bit_frame(), njb3_update_string_frame(), njb3_update_tag(), and njb_capture().

#define EO_CANTMOVE 13

can't move file to destination

#define EO_DEVICE 17

can't open device for read/write

#define EO_EOF 16

received EOF

#define EO_EOM 6

end of data

#define EO_INIT 18

can't initialize device

#define EO_INVALID 24

invalid arguments

Referenced by NJB_Send_File(), NJB_Send_Firmware(), and NJB_Send_Track().

#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(), NJB_Get_Owner_String(), NJB_Get_Track_fd(), njb_read_eaxtypes(), and NJB_Update_Playlist().

#define EO_NULLTMP 11

temporary transfer dir not defined

#define EO_RDSHORT 3

short read on USB data pipe

Referenced by njb3_add_multiple_tracks_to_playlist(), njb3_create_playlist(), njb3_get_codecs(), njb3_power_status(), njb3_request_file_chunk(), njb_ping(), and njb_read_eaxtypes().

#define EO_SRCFILE 23

can't read source file

Referenced by NJB_Send_File(), NJB_Send_Firmware(), and NJB_Send_Track().

#define EO_TIMEOUT 14

operation timed out

#define EO_TMPFILE 19

can't create temporary file

Referenced by NJB_Get_Track().

#define EO_TOOBIG 12

block size too big

Referenced by njb_receive_file_block(), NJB_Send_File(), and NJB_Send_Track().

#define EO_USBBLK 2

I/O failure on USB data pipe

Referenced by njb3_add_multiple_tracks_to_playlist(), njb3_create_playlist(), njb3_get_codecs(), njb3_get_file_block(), njb3_power_status(), njb3_request_file_chunk(), njb_ping(), njb_read_eaxtypes(), and njb_receive_file_block().

#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().

#define EO_WRFILE 21

error writing output file

Referenced by NJB_Get_Track_fd().

#define EO_WRSHORT 10

short write on USB data pipe

#define EO_XFERDENIED 20

transfer request denied

Referenced by NJB_Get_Track_fd(), NJB_Send_File(), and NJB_Send_Track().

#define EO_XFERERROR 22

bad transfer completion status

Referenced by NJB_Get_Track_fd().