summaryrefslogtreecommitdiff
path: root/main/jni/jniglue.h
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-11-26 00:04:25 +0100
committerArne Schwabe <arne@rfc2549.org>2014-11-26 00:04:25 +0100
commit5dc503314511f3041b4674569ba03c10714f7625 (patch)
tree13a7b93ccdaccb85f576d7c29bf432e6039ab48f /main/jni/jniglue.h
parentd02a647cda48441ab0f6f1c5d00d5b3fdb74b691 (diff)
Implement getting local interfaces via native API and without OpenVPN.
Fixes allow local LAN on Android 5.0 --HG-- extra : rebase_source : ac79c41800905f3aeb23ce49a617ab226a6473c0
Diffstat (limited to 'main/jni/jniglue.h')
-rw-r--r--main/jni/jniglue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/jni/jniglue.h b/main/jni/jniglue.h
index a86d52da..8f813b64 100644
--- a/main/jni/jniglue.h
+++ b/main/jni/jniglue.h
@@ -10,3 +10,12 @@
#define xcopenvpn_jniglue_h
void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,const char* m1);
#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ int jniThrowException(JNIEnv* env, const char* className, const char* msg);
+
+#ifdef __cplusplus
+}
+#endif