posix.h 454 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * Alessandro Rubini for CERN, 2011 -- public domain
 */

/*
 * These are the functions provided by the various posix files
 */

extern int posix_net_init(struct pp_instance *ppi);

extern int posix_open_ch(struct pp_instance *ppi, char *name);

extern int posix_recv_packet(struct pp_instance *ppi, void *pkt, int len);
extern int posix_send_packet(struct pp_instance *ppi, void *pkt, int len);

extern void posix_main_loop(struct pp_instance *ppi);