summaryrefslogtreecommitdiffstats
path: root/java/jni
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
commitfb7b8f699e8ab921af3f875ddb285bd502737818 (patch)
tree5eb91d0934c05328824d1ecc80704a2d0ffb2684 /java/jni
parent1b623173885bee4223efc44253bbcdb9fe7c5bf7 (diff)
tinyb: fix jni unresolved symbols (add namespace to implementation
Diffstat (limited to 'java/jni')
-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 c20b5933..68ee0408 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());
}