posix.h 594 Bytes
Newer Older
1 2 3 4 5 6 7 8
/*
 * Alessandro Rubini for CERN, 2011 -- public domain
 */

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

9
struct posix_arch_data {
10 11 12
	struct timeval tv;
};

13
extern int posix_net_init(struct pp_instance *ppi);
14
extern int posix_net_check_pkt(struct pp_instance *ppi, int delay_ms);
15 16 17 18

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

extern int posix_recv_packet(struct pp_instance *ppi, void *pkt, int len);
19 20
extern int posix_send_packet(struct pp_instance *ppi, void *pkt, int len,
			     int chtype);
21 22

extern void posix_main_loop(struct pp_instance *ppi);