#ifndef LIBSLIRP_H #define LIBSLIRP_H #include #include #include #ifdef _WIN32 #include #include #else #include #include #endif typedef struct Slirp Slirp; typedef ssize_t (*SlirpWriteCb)(const void *buf, size_t len, void *opaque); typedef void (*SlirpTimerCb)(void *opaque); /* * Callbacks from slirp */ typedef struct SlirpCb { /* * Send an ethernet frame to the guest network. The opaque * parameter is the one given to slirp_init(). The function * doesn't need to send all the data and may return