man NJB_Delete_Track (Fonctions bibliothèques) - Delete an audio track from the NJB

NAME

NJB_Delete_Track - Delete an audio track from the NJB

LIBRARY

libnjb

SYNOPSIS

#include <sys/types.h> #include <libnjb.h>

extern int njb_error

int NJB_Delete_Track (njb_t *njb, u_int32_t trackid)

DESCRIPTION

This function deletes an audio track from the NJB. The ID of the track to be deleted is passed in the trackid parameter.

This function also increments the NJB's library counter, provided it has not been incremented previously during the session.

RETURN VALUES

This function returns 0 on success. If a failure occurs, it returns -1 and sets njb_error

EO_BADCOUNT
The track was successfully deteled, but the NJB's library counter could not be updated.
EO_BADSTATUS
The NJB returned a non-zero status. The track was not deleted.
EO_USBCTL
An I/O error occurred on the control pipe. The track was not deleted.