From 6ba818e5c9e1d7d50478cf161fe819597499477d Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 18 Mar 2013 17:20:30 +0100 Subject: Move native functions into own class. This way the Gui will not always load the native libraries when showing profiles and allows some GUI modifications without compiling ndk code --- jni/jbcrypto.cpp | 2 +- jni/jniglue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'jni') diff --git a/jni/jbcrypto.cpp b/jni/jbcrypto.cpp index 77382fb9..97bc5e70 100644 --- a/jni/jbcrypto.cpp +++ b/jni/jbcrypto.cpp @@ -17,7 +17,7 @@ extern "C" { -jbyteArray Java_de_blinkt_openvpn_VpnProfile_rsasign(JNIEnv* env, jclass, jbyteArray from, jint pkeyRef); +jbyteArray Java_de_blinkt_openvpn_core_NativeUtils_rsasign(JNIEnv* env, jclass, jbyteArray from, jint pkeyRef); } int jniThrowException(JNIEnv* env, const char* className, const char* msg) { diff --git a/jni/jniglue.c b/jni/jniglue.c index 15b78014..c3b4bf3b 100644 --- a/jni/jniglue.c +++ b/jni/jniglue.c @@ -16,7 +16,7 @@ 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_OpenVpnManagementThread_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); } -- cgit v1.2.3