libslirp.h revision 9a17f1cf35d88122039af1f57972a2e6718b3573
#ifndef _LIBSLIRP_H
#define _LIBSLIRP_H
#ifdef _WIN32
#include <winsock2.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#else
#ifdef RT_OS_OS2 /* temporary workaround, see ticket #127 */
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
int slirp_init(PNATState *, const char *, bool, void *);
void slirp_term(PNATState);
void slirp_link_up(PNATState);
void slirp_link_down(PNATState);
/* you must provide the following functions: */
int slirp_can_output(void * pvUser);
int guest_port);
#ifdef __cplusplus
}
#endif
#endif