Annotation of qemu/slirp/libslirp.h, revision 1.1.1.4

1.1       root        1: #ifndef _LIBSLIRP_H
                      2: #define _LIBSLIRP_H
                      3: 
                      4: #ifdef __cplusplus
                      5: extern "C" {
                      6: #endif
                      7: 
1.1.1.4 ! root        8: void slirp_init(int restrict, char *special_ip);
1.1       root        9: 
1.1.1.3   root       10: void slirp_select_fill(int *pnfds,
1.1       root       11:                        fd_set *readfds, fd_set *writefds, fd_set *xfds);
                     12: 
                     13: void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds);
                     14: 
                     15: void slirp_input(const uint8_t *pkt, int pkt_len);
                     16: 
                     17: /* you must provide the following functions: */
                     18: int slirp_can_output(void);
                     19: void slirp_output(const uint8_t *pkt, int pkt_len);
                     20: 
1.1.1.3   root       21: int slirp_redir(int is_udp, int host_port,
1.1       root       22:                 struct in_addr guest_addr, int guest_port);
1.1.1.4 ! root       23: int slirp_add_exec(int do_pty, const void *args, int addr_low_byte,
1.1       root       24:                    int guest_port);
                     25: 
                     26: extern const char *tftp_prefix;
1.1.1.2   root       27: extern char slirp_hostname[33];
1.1       root       28: 
1.1.1.3   root       29: void slirp_stats(void);
1.1.1.4 ! root       30: void slirp_socket_recv(int addr_low_byte, int guest_port, const uint8_t *buf,
        !            31:                int size);
        !            32: size_t slirp_socket_can_recv(int addr_low_byte, int guest_port);
1.1.1.3   root       33: 
1.1       root       34: #ifdef __cplusplus
                     35: }
                     36: #endif
                     37: 
                     38: #endif

unix.superglobalmegacorp.com