summaryrefslogtreecommitdiff
path: root/main/jni/jniglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/jni/jniglue.c')
-rw-r--r--main/jni/jniglue.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/jni/jniglue.c b/main/jni/jniglue.c
index 12e67543..bb5ec688 100644
--- a/main/jni/jniglue.c
+++ b/main/jni/jniglue.c
@@ -19,6 +19,15 @@ void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,con
__android_log_print(ANDROID_LOG_DEBUG,"openvpn","%s%s%s",prefix,prefix_sep,m1);
}
-void Java_de_blinkt_openvpn_core_NativeUtils_jniclose(JNIEnv *env,jclass jo, jint fd) {
+void Java_de_blinkt_openvpn_core_NativeUtils_jniclose(JNIEnv *env,jclass jo, jint fd)
+{
int ret = close(fd);
}
+
+
+//! Hack to get the current installed ABI of the libraries. See also https://github.com/schwabe/ics-openvpn/issues/391
+jstring Java_de_blinkt_openvpn_core_NativeUtils_getNativeAPI(JNIEnv *env, jclass jo)
+{
+
+ return (*env)->NewStringUTF(env, TARGET_ARCH_ABI);
+}