diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-03-18 17:20:30 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-03-18 17:20:30 +0100 |
commit | 6ba818e5c9e1d7d50478cf161fe819597499477d (patch) | |
tree | 2fcd13e8cd3c0e61821e4c5486f0e9d8ae231a00 /jni | |
parent | 098204e653c958da12ae864d3b6c183e716c2a9b (diff) |
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
Diffstat (limited to 'jni')
-rw-r--r-- | jni/jbcrypto.cpp | 2 | ||||
-rw-r--r-- | jni/jniglue.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |