aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-04 00:52:48 +0200
committerSven Gothel <[email protected]>2020-07-04 00:52:48 +0200
commit57bb75c7322c1572a0add0416ebb61b7fd5e868d (patch)
tree2866321651698815e31251688abacb3c7f370756 /java
parentff8d705b1fbd39155d38726ec4acbd2ffa2c225f (diff)
tinyb: fix jni unresolved symbols (add namespace to implementation
Diffstat (limited to 'java')
-rw-r--r--java/jni/tinyb/helper_tinyb.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/jni/tinyb/helper_tinyb.cxx b/java/jni/tinyb/helper_tinyb.cxx
index c20b593..68ee040 100644
--- a/java/jni/tinyb/helper_tinyb.cxx
+++ b/java/jni/tinyb/helper_tinyb.cxx
@@ -35,12 +35,12 @@
using namespace tinyb;
-jclass search_class(JNIEnv *env, BluetoothObject &object)
+jclass tinyb::search_class(JNIEnv *env, BluetoothObject &object)
{
return search_class(env, object.get_java_class().c_str());
}
-BluetoothType from_int_to_btype(int type)
+BluetoothType tinyb::from_int_to_btype(int type)
{
BluetoothType result = BluetoothType::NONE;
@@ -78,7 +78,7 @@ BluetoothType from_int_to_btype(int type)
return result;
}
-TransportType from_int_to_transport_type(int type)
+TransportType tinyb::from_int_to_transport_type(int type)
{
TransportType result = TransportType::AUTO;
@@ -104,7 +104,7 @@ TransportType from_int_to_transport_type(int type)
return result;
}
-void raise_java_bluetooth_exception(JNIEnv *env, BluetoothException &e)
+void tinyb::raise_java_bluetooth_exception(JNIEnv *env, BluetoothException &e)
{
env->ThrowNew(env->FindClass("org/tinyb/BluetoothException"), e.what());
}