Statistics
| Branch: | Revision:

root / slirp / libslirp.h @ dc5d0b3d

History | View | Annotate | Download (462 Bytes)

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