libnjb 2.2.7
|
#include <sys/types.h>
#include <stdio.h>
#include <usb.h>
Go to the source code of this file.
Data Structures | |
struct | njb_struct |
struct | njb_songid_frame_struct |
struct | njb_songid_struct |
struct | njb_playlist_track_struct |
struct | njb_playlist_struct |
struct | njb_datafile_struct |
struct | njb_eax_struct |
struct | njb_time_struct |
struct | njb_keyval_struct |
Typedefs | |
typedef unsigned char | owner_string[OWNER_STRING_LENGTH+1] |
typedef struct njb_struct | njb_t |
typedef struct njb_songid_frame_struct | njb_songid_frame_t |
typedef struct njb_songid_struct | njb_songid_t |
typedef struct njb_playlist_track_struct | njb_playlist_track_t |
typedef struct njb_playlist_struct | njb_playlist_t |
typedef struct njb_datafile_struct | njb_datafile_t |
typedef struct njb_eax_struct | njb_eax_t |
typedef struct njb_time_struct | njb_time_t |
typedef struct njb_keyval_struct | njb_keyval_t |
typedef int | NJB_Xfer_Callback(u_int64_t sent, u_int64_t total, const char *buf, unsigned len, void *data) |
Enumerations | |
enum | njb_eax_control_t { NJB_EAX_NO_CONTROL , NJB_EAX_SLIDER_CONTROL , NJB_EAX_FIXED_OPTION_CONTROL } |
Interface to the Nomad Jukebox library libnjb, handles most models. Also handles the Dell Digital Jukebox. This file should be included by programs that want to use libnjb, e.g.:
#include <libnjb.h>
#define LIBNJB_COMPILED_FOR_LIBUSB 1 |
A legacy definition - nowadays we always compile for libusb
#define LIBNJB_VERSION 2.2.7 |
The version of this installation of libnjb
#define NJB_FILEFLAGS_REGULAR_FILE 0x80000000U |
This definition corresponds to the standard file permissions set for most files transferred from Windows machines to the device "file system" (file database). Can be used as a template to simplify things.
Referenced by datafile_unpack().
#define NJB_MAX_DEVICES 0xFF |
The maximum number of devices that can be found by libnjb
#define NJB_PL_CHNAME 2 |
This playlist has changed name
Referenced by NJB_Playlist_Set_Name(), and NJB_Update_Playlist().
#define NJB_PL_CHTRACKS 3 |
This playlist has a new track listing
Referenced by NJB_Playlist_Addtrack(), NJB_Playlist_Deltrack(), NJB_Playlist_Deltrack_TrackID(), and NJB_Update_Playlist().
#define NJB_PL_NEW 0 |
This playlist is new
Referenced by NJB_Playlist_Addtrack(), NJB_Playlist_New(), and NJB_Update_Playlist().
#define NJB_PL_UNCHANGED 1 |
This playlist has not changed
Referenced by NJB_Playlist_Set_Name(), NJB_Update_Playlist(), and playlist_unpack().
#define OWNER_STRING_LENGTH 128 |
The fixed length of the owner string
Referenced by NJB_Set_Owner_String().
typedef int NJB_Xfer_Callback(u_int64_t sent, u_int64_t total, const char *buf, unsigned len, void *data) |
The callback type
typedef unsigned char owner_string[OWNER_STRING_LENGTH+1] |
A type defined for owner strings
enum njb_eax_control_t |
This is the EAX Control Type