diff options
author | Arne Schwabe <arne@rfc2549.org> | 2015-10-19 11:14:23 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2015-10-19 11:14:23 +0200 |
commit | f1dff3a593649364a84889f7106266634007fe85 (patch) | |
tree | 10cbc34dae58da98274491f47344d09d5c6baa5a /main/jni/jniglue.c | |
parent | 41f203eccd9ecefcf00c63b592bd78f4deff9b95 (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.c | 11 |
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); +} |