libslirp.h revision a3ed553e5ba0749c53a4fba12098c54461689b0e
#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
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);
#if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS)
#define VBOX_NET_EVENT_INDEX 0
#define VBOX_SEND_EVENT_INDEX 1
#define VBOX_SOCKET_EVENT_INDEX 2
#endif
#ifdef __cplusplus
}
#endif
#endif