ppc.h File Reference
Go to the source code of this file.
Typedefs |
| typedef struct ppc_s | ppc_t |
| typedef int(* | ppc_cb_t )(ppc_t *, int fd, unsigned char cmd, char *data, size_t size, void *arg) |
Enumerations |
| enum | { PPC_MAX_DATA_SIZE = 8192
} |
Functions |
| int | ppc_create (ppc_t **pppc) |
| int | ppc_free (ppc_t *ppc) |
| int | ppc_register (ppc_t *ppc, unsigned char cmd, ppc_cb_t func, void *arg) |
| int | ppc_dispatch (ppc_t *ppc, int fd, unsigned char cmd, char *data, size_t size) |
| ssize_t | ppc_write (ppc_t *ppc, int fd, unsigned char cmd, char *data, size_t size) |
| ssize_t | ppc_read (ppc_t *ppc, int fd, unsigned char *cmd, char *data, size_t size) |
Typedef Documentation
| typedef int(* ppc_cb_t)(ppc_t *, int fd, unsigned char cmd, char *data, size_t size, void *arg) |
Definition at line 26 of file ppc.h.
| typedef struct ppc_s ppc_t |
Definition at line 24 of file ppc.h.
Enumeration Type Documentation
- Enumerator:
-
Definition at line 21 of file ppc.h.
Function Documentation
| int ppc_create |
( |
ppc_t ** |
pppc |
) |
|
| int ppc_dispatch |
( |
ppc_t * |
ppc, |
|
|
int |
fd, |
|
|
unsigned char |
cmd, |
|
|
char * |
data, |
|
|
size_t |
size | |
|
) |
| | |
| int ppc_free |
( |
ppc_t * |
ppc |
) |
|
| ssize_t ppc_read |
( |
ppc_t * |
ppc, |
|
|
int |
fd, |
|
|
unsigned char * |
cmd, |
|
|
char * |
data, |
|
|
size_t |
size | |
|
) |
| | |
Definition at line 97 of file ppc.c.
| int ppc_register |
( |
ppc_t * |
ppc, |
|
|
unsigned char |
cmd, |
|
|
ppc_cb_t |
func, |
|
|
void * |
arg | |
|
) |
| | |
Definition at line 29 of file ppc.c.
| ssize_t ppc_write |
( |
ppc_t * |
ppc, |
|
|
int |
fd, |
|
|
unsigned char |
cmd, |
|
|
char * |
data, |
|
|
size_t |
size | |
|
) |
| | |
Definition at line 72 of file ppc.c.