2015-04-24 04:36:33 +00:00
|
|
|
#ifndef ZT1_jniutils_h_
|
|
|
|
#define ZT1_jniutils_h_
|
|
|
|
#include <jni.h>
|
|
|
|
#include <ZeroTierOne.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-04-24 04:39:07 +00:00
|
|
|
jobject createResultObject(JNIEnv *env, ZT1_ResultCode code);
|
|
|
|
jobject createVirtualNetworkStatus(JNIEnv *env, ZT1_VirtualNetworkStatus status);
|
2015-04-24 05:48:56 +00:00
|
|
|
jobject createVirtualNetworkType(JNIEnv *env, ZT1_VirtualNetworkType type);
|
2015-04-24 04:39:07 +00:00
|
|
|
jobject createEvent(JNIEnv *env, ZT1_Event event);
|
|
|
|
|
2015-04-24 04:36:33 +00:00
|
|
|
jobject newArrayList(JNIEnv *env);
|
2015-04-24 05:48:56 +00:00
|
|
|
bool appendItemToArrayList(JNIEnv *env, jobject array, jobject object);
|
2015-04-24 04:36:33 +00:00
|
|
|
|
2015-04-24 05:48:56 +00:00
|
|
|
jobject newInetAddress(JNIEnv *env, const sockaddr_storage &addr);
|
2015-04-24 04:36:33 +00:00
|
|
|
|
|
|
|
jobject newMulticastGroup(JNIEnv *env, const ZT1_MulticastGroup &mc);
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|