aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/BluetoothManager.cxx
diff options
context:
space:
mode:
authorAndrei Vasiliu <[email protected]>2016-01-25 17:49:32 +0200
committerAndrei Vasiliu <[email protected]>2016-01-25 18:08:42 +0200
commitbcd667a4a8b34f11a4441d5bc731958934e98405 (patch)
tree1b9c819c4aaf4e228b574ab01636644c84a1f79f /java/jni/BluetoothManager.cxx
parentb2a61571a0957e65d1a9fc990a4b3d72610f45be (diff)
java: Created Java package tinyb
Signed-off-by: Andrei Vasiliu <[email protected]>
Diffstat (limited to 'java/jni/BluetoothManager.cxx')
-rw-r--r--java/jni/BluetoothManager.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/java/jni/BluetoothManager.cxx b/java/jni/BluetoothManager.cxx
index 4fc7421..476f9ba 100644
--- a/java/jni/BluetoothManager.cxx
+++ b/java/jni/BluetoothManager.cxx
@@ -27,20 +27,20 @@
#include "tinyb/BluetoothGattService.hpp"
#include "tinyb/BluetoothManager.hpp"
-#include "BluetoothManager.h"
+#include "tinyb_BluetoothManager.h"
#include "helper.h"
using namespace tinyb;
-jobject Java_BluetoothManager_getBluetoothType(JNIEnv *env, jobject obj)
+jobject Java_tinyb_BluetoothManager_getBluetoothType(JNIEnv *env, jobject obj)
{
(void)obj;
return get_bluetooth_type(env, "NONE");
}
-jobject Java_BluetoothManager_getObject(JNIEnv *env, jobject obj, jobject type,
+jobject Java_tinyb_BluetoothManager_getObject(JNIEnv *env, jobject obj, jobject type,
jstring name, jstring identifier, jobject parent)
{
(void)env;
@@ -53,7 +53,7 @@ jobject Java_BluetoothManager_getObject(JNIEnv *env, jobject obj, jobject type,
return nullptr;
}
-jobject Java_BluetoothManager_getObjects(JNIEnv *env, jobject obj, jobject type,
+jobject Java_tinyb_BluetoothManager_getObjects(JNIEnv *env, jobject obj, jobject type,
jstring name, jstring identifier, jobject parent)
{
(void)env;
@@ -66,7 +66,7 @@ jobject Java_BluetoothManager_getObjects(JNIEnv *env, jobject obj, jobject type,
return nullptr;
}
-jobject Java_BluetoothManager_getAdapters(JNIEnv *env, jobject obj)
+jobject Java_tinyb_BluetoothManager_getAdapters(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
@@ -77,7 +77,7 @@ jobject Java_BluetoothManager_getAdapters(JNIEnv *env, jobject obj)
return result;
}
-jobject Java_BluetoothManager_getDevices(JNIEnv *env, jobject obj)
+jobject Java_tinyb_BluetoothManager_getDevices(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
@@ -89,7 +89,7 @@ jobject Java_BluetoothManager_getDevices(JNIEnv *env, jobject obj)
}
-jobject Java_BluetoothManager_getServices(JNIEnv *env, jobject obj)
+jobject Java_tinyb_BluetoothManager_getServices(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
@@ -100,7 +100,7 @@ jobject Java_BluetoothManager_getServices(JNIEnv *env, jobject obj)
return result;
}
-jboolean Java_BluetoothManager_setDefaultAdapter(JNIEnv *env, jobject obj, jobject adapter)
+jboolean Java_tinyb_BluetoothManager_setDefaultAdapter(JNIEnv *env, jobject obj, jobject adapter)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
BluetoothAdapter *b_adapter = getInstance<BluetoothAdapter>(env, adapter);
@@ -108,25 +108,25 @@ jboolean Java_BluetoothManager_setDefaultAdapter(JNIEnv *env, jobject obj, jobje
return manager->set_default_adapter(b_adapter);
}
-jboolean Java_BluetoothManager_startDiscovery(JNIEnv *env, jobject obj)
+jboolean Java_tinyb_BluetoothManager_startDiscovery(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
return manager->start_discovery() ? JNI_TRUE : JNI_FALSE;
}
-jboolean Java_BluetoothManager_stopDiscovery(JNIEnv *env, jobject obj)
+jboolean Java_tinyb_BluetoothManager_stopDiscovery(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
return manager->start_discovery() ? JNI_TRUE : JNI_FALSE;
}
-void Java_BluetoothManager_init(JNIEnv *env, jobject obj)
+void Java_tinyb_BluetoothManager_init(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = BluetoothManager::get_bluetooth_manager();
setInstance<BluetoothManager>(env, obj, manager);
}
-void Java_BluetoothManager_delete(JNIEnv *env, jobject obj)
+void Java_tinyb_BluetoothManager_delete(JNIEnv *env, jobject obj)
{
BluetoothManager *manager = getInstance<BluetoothManager>(env, obj);
delete manager;