njb_delete_datafile(3)
NAME
NJB_Delete_Datafile - Delete a data file from the NJB
LIBRARY
libnjb
SYNOPSIS
#include <sys/types.h> #include <libnjb.h> extern int njb_error int NJB_Delete_Datafile (njb_t *njb, u_int32_t fileid)
DESCRIPTION
- This function deletes a data file from the NJB. The ID of
- the file to be deleted is passed in the fileid parameter. Data
- files are not music tracks, but general data storage containers
- on the jukebox.
- This function also increments the NJB's library counter,
- provided it has not been incremented previously during the ses
- sion.
RETURN VALUES
- This function returns 0 on success. If a failure occurs,
- it returns -1 and sets njb_error
- EO_BADCOUNT
- The file was successfully deleted, but the NJB's
- library counter could not be updated.
- EO_BADSTATUS
- The NJB returned a non-zero status. The file
- was not deleted.
- EO_USBCTL An I/O error occurred on the control pipe. The
- file was not deleted.
April 2002