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