OSX SDK demo app update

This commit is contained in:
Joseph Henry
2016-07-05 14:47:14 -05:00
parent 9f776adc69
commit 075a53475f
11 changed files with 109 additions and 16 deletions

View File

@@ -25,6 +25,9 @@
* LLC. Start here: http://www.zerotier.com/
*/
#include <string>
#ifdef __cplusplus
extern "C" {
#endif
@@ -38,13 +41,15 @@ extern "C" {
#define INTERCEPT_ENABLED 111
#define INTERCEPT_DISABLED 222
extern std::string homeDir;
#if defined(__ANDROID__)
// JNI naming convention: Java_PACKAGENAME_CLASSNAME_METHODNAME
/* If you define anything else in this file it *must* follow that convention
and any corresponding Java package/classes in your Android project must match this as well */
/* If you define anything else in this file it that you wish to expose to your Android
Java application you *must* follow that convention and any corresponding Java package/classes
in your Android project must match this as well */
JNIEXPORT void JNICALL Java_ZeroTier_SDK_startOneService(JNIEnv *env, jobject thisObj);
#else
void *startOneService(void *thread_id);