mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 13:07:55 +00:00
added stub utility functions for creating ArrayLists, appending items to ArrayLists, creating InetAddress objects, and MulticastGroup objects
Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
parent
fa9d42b7e5
commit
4906f8e848
@ -36,6 +36,7 @@ LOCAL_SRC_FILES := \
|
||||
|
||||
# JNI Files
|
||||
LOCAL_SRC_FILES += \
|
||||
com_zerotierone_sdk_Node.cpp
|
||||
com_zerotierone_sdk_Node.cpp \
|
||||
ZT1_jniutils.cpp
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
35
java/jni/ZT1_jniutils.cpp
Normal file
35
java/jni/ZT1_jniutils.cpp
Normal file
@ -0,0 +1,35 @@
|
||||
#include "ZT1_jniutils.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
jobject newArrayList(JNIEnv *env)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jobject appendItemToArrayList(JNIEnv *env, jobject object)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jobject newIPV6Address(JNIEnv *env, char *addr)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jobject newIPV4Address(JNIEnv *env, char *addr)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
jobject newMulticastGroup(JNIEnv *env, const ZT1_MulticastGroup &mc)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
21
java/jni/ZT1_jniutils.h
Normal file
21
java/jni/ZT1_jniutils.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef ZT1_jniutils_h_
|
||||
#define ZT1_jniutils_h_
|
||||
#include <jni.h>
|
||||
#include <ZeroTierOne.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
jobject newArrayList(JNIEnv *env);
|
||||
jobject appendItemToArrayList(JNIEnv *env, jobject object);
|
||||
|
||||
jobject newIPV6Address(JNIEnv *env, char *addr);
|
||||
jobject newIPV4Address(JNIEnv *env, char *addr);
|
||||
|
||||
jobject newMulticastGroup(JNIEnv *env, const ZT1_MulticastGroup &mc);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user