sh4/r2d: update pci, usb and kernel management
[qemu/sh4.git] / slirp / libslirp.h
blob7e4cfa98a2b9659b3a6f10cf8ae8933cd51ec8dd
1 #ifndef _LIBSLIRP_H
2 #define _LIBSLIRP_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 void slirp_init(void);
10 void slirp_select_fill(int *pnfds,
11 fd_set *readfds, fd_set *writefds, fd_set *xfds);
13 void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds);
15 void slirp_input(const uint8_t *pkt, int pkt_len);
17 /* you must provide the following functions: */
18 int slirp_can_output(void);
19 void slirp_output(const uint8_t *pkt, int pkt_len);
21 int slirp_redir(int is_udp, int host_port,
22 struct in_addr guest_addr, int guest_port);
23 int slirp_add_exec(int do_pty, const char *args, int addr_low_byte,
24 int guest_port);
26 extern const char *tftp_prefix;
27 extern char slirp_hostname[33];
29 void slirp_stats(void);
31 #ifdef __cplusplus
33 #endif
35 #endif