initial user mode network support
[qemu] / slirp / libslirp.h
1 #ifndef _LIBSLIRP_H
2 #define _LIBSLIRP_H
3
4 #include <sys/select.h>
5
6 void slirp_init(void);
7
8 void slirp_select_fill(int *pnfds, 
9                        fd_set *readfds, fd_set *writefds, fd_set *xfds);
10
11 void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds);
12
13 void slirp_input(const uint8_t *pkt, int pkt_len);
14
15 /* you must provide the following functions: */
16 int slirp_can_output(void);
17 void slirp_output(const uint8_t *pkt, int pkt_len);
18
19 #endif