X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=inline;f=src%2Fmeshlink.h;h=96fb8d6e7492da240e1505c06ce94dbd294f43b9;hb=6d1ac53f5c34ece4c7a82efb432a8e1d81fcff0d;hp=37fe5540f41f1c78e472bfe14a7348bdacfe7b44;hpb=cf5a9d0ff6ef59cd130a865ce1be44b4e8b8471a;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index 37fe5540..96fb8d6e 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -25,6 +25,13 @@ #include #include +#if defined(_WIN32) +#include +#else +#include +#include +#endif + #ifdef __cplusplus extern "C" { #endif @@ -122,6 +129,9 @@ extern const char *meshlink_strerror(meshlink_errno_t err); */ extern meshlink_handle_t *meshlink_open(const char *confbase, const char *name, const char* appname); +/// is used by the C++ wrapper to allocate more memory behind the handle +extern meshlink_handle_t *meshlink_open_with_size(const char *confbase, const char *name, const char* appname, size_t size); + /// Start MeshLink. /** This function causes MeshLink to open network sockets, make outgoing connections, and * create a new thread, which will handle all network I/O.