pjbapi

Name

pjbapi -- Personal Jukebox RPC API implementation

Synopsis



typedef     PJB_ID;
#define     PJB_DLLIMPORT
#define     PJB_DLLEXPORT
#define     PJB_ClickSize
#define     PJB_AllocSize
typedef     PJB_HANDLE;
#define     PJB_SSN_SIZE
typedef     PJB_Checksum;
typedef     PJB_INFO;
#define     FLASHREC_MAINCODE
#define     FLASHREC_EXECUTE
#define     PJB_ERR_NODISK
#define     PJB_ERR_DISK
#define     PJB_ERR_ALLOCBLOCK
#define     PJB_ERR_OFFSET
#define     PJB_ERR_CHECKSUM
#define     PJB_ERR_NOTOC
#define     PJB_ERR_COMM
#define     PJB_ERR_TIMEOUT
#define     PJB_ERR_NO_RESOURCES
#define     PJB_ERR_NODEVICE
#define     PJB_ERR_DATACORRUPT
#define     PJB_ERR_PROTOCOLERR
#define     PJB_ERR_NOBIND
#define     PJB_ERR_BADPARM
#define     PJB_ERR_PJBINUSE
#define     BOOTMETHOD_MAIN
#define     BOOTMETHOD_RECOVERY

Description

This module contains most of the "administrative" functions for the Personal Jukebox API.

Details

PJB_ID

typedef struct { 
    u8 b[PJB_SSN_SIZE];
} PJB_ID;	


PJB_DLLIMPORT

#define     PJB_DLLIMPORT


PJB_DLLEXPORT

#define     PJB_DLLEXPORT


PJB_ClickSize

#define PJB_ClickSize	1024	

Size of protocol transfer unit


PJB_AllocSize

#define PJB_AllocSize	128		

Clicks in an alloc block


PJB_HANDLE

typedef void *PJB_HANDLE;


PJB_SSN_SIZE

#define PJB_SSN_SIZE	6


PJB_Checksum

typedef struct { u8 b[4]; } PJB_Checksum;

PJB Serial # (address)


PJB_INFO

typedef struct {
    PJB_ID id;
    unsigned int hwver;
    unsigned int swver;
    unsigned int features;
    char name[65];
    u8 ssn[PJB_SSN_SIZE];
} PJB_INFO;


FLASHREC_MAINCODE

#define FLASHREC_MAINCODE	0


FLASHREC_EXECUTE

#define FLASHREC_EXECUTE        3


PJB_ERR_NODISK

#define PJB_ERR_NODISK        (-1)    

No disk at PJB


PJB_ERR_DISK

#define PJB_ERR_DISK          (-2)    

Disk I/O Error


PJB_ERR_ALLOCBLOCK

#define PJB_ERR_ALLOCBLOCK    (-3)    

Alloc block number out of range


PJB_ERR_OFFSET

#define PJB_ERR_OFFSET        (-4)    

Offset out of range


PJB_ERR_CHECKSUM

#define PJB_ERR_CHECKSUM      (-5)    

Checksum mismatch


PJB_ERR_NOTOC

#define PJB_ERR_NOTOC         (-6)    

No table of contents


PJB_ERR_COMM

#define PJB_ERR_COMM        (-100)    

Communications error


PJB_ERR_TIMEOUT

#define PJB_ERR_TIMEOUT	    (-101)     

Timeout


PJB_ERR_NO_RESOURCES

#define PJB_ERR_NO_RESOURCES (-102)    

Out of resources


PJB_ERR_NODEVICE

#define PJB_ERR_NODEVICE    (-103)  

No device found


PJB_ERR_DATACORRUPT

#define PJB_ERR_DATACORRUPT (-104)	

Network data is corrupt


PJB_ERR_PROTOCOLERR

#define PJB_ERR_PROTOCOLERR (-105)	

Protocol error


PJB_ERR_NOBIND

#define PJB_ERR_NOBIND	    (-106)	

Could not bind to adapter


PJB_ERR_BADPARM

#define PJB_ERR_BADPARM	    (-107)

Bad parameter


PJB_ERR_PJBINUSE

#define PJB_ERR_PJBINUSE    (-108)

Device in use


BOOTMETHOD_MAIN

#define     BOOTMETHOD_MAIN


BOOTMETHOD_RECOVERY

#define     BOOTMETHOD_RECOVERY