diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2013-08-26 17:22:20 -0400 |
| commit | 487eb17ec075dd2bdc91f78b41577b070d90f8f5 (patch) | |
| tree | 1dccfa3836a48cf917934fe5dd01210d9d60d236 /node/Node.hpp | |
| parent | 9f16707b0b8ec62de67394bf4884408eb65f2a7a (diff) | |
| download | infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.tar.gz infinitytier-487eb17ec075dd2bdc91f78b41577b070d90f8f5.zip | |
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
Diffstat (limited to 'node/Node.hpp')
| -rw-r--r-- | node/Node.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
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 |
