From 487eb17ec075dd2bdc91f78b41577b070d90f8f5 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 26 Aug 2013 17:22:20 -0400 Subject: ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap. --- node/Node.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'node/Node.hpp') diff --git a/node/Node.hpp b/node/Node.hpp index b716b556..9fb4666d 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -163,5 +163,17 @@ extern const unsigned char EMBEDDED_VERSION_STAMP[20]; } // namespace ZeroTier -#endif +extern "C" { + +// Functions with C-style linkage for easy DLL symbol table +// lookup. These just create instances of Node and LocalClient. + +ZeroTier::Node *zeroTierCreateNode(const char *hp); +void zeroTierDeleteNode(ZeroTier::Node *n); +ZeroTier::Node::LocalClient *zeroTierCreateLocalClient(const char *authToken,void (*resultHandler)(void *,unsigned long,const char *),void *arg); +void zeroTierDeleteLocalClient(ZeroTier::Node::LocalClient *lc); + +} // extern "C" + +#endif -- cgit v1.2.3