summaryrefslogtreecommitdiff
path: root/main/jni/jniglue.c
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2015-10-19 11:14:23 +0200
committerArne Schwabe <arne@rfc2549.org>2015-10-19 11:14:23 +0200
commitf1dff3a593649364a84889f7106266634007fe85 (patch)
tree10cbc34dae58da98274491f47344d09d5c6baa5a /main/jni/jniglue.c
parent41f203eccd9ecefcf00c63b592bd78f4deff9b95 (diff)
Get the native ABI from a native ABI call (closes #391), update translations, report ABI as part of version information
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);
+}