aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-10-10 07:14:46 +0200
committerSven Gothel <[email protected]>2021-10-10 07:14:46 +0200
commitdade7d8db9f89ac4c44c3ce5c1d7b9d1676c47c4 (patch)
tree70d755b605be300473247b5667898bf3bd085c16 /java/jni
parent57819d5aa74d6ab6e93e570f2c67c781f52f186d (diff)
BTAdapter: Remove setDiscoverable() and setBondable() (-> startAdvertising() incl connectable)
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/DBTAdapter.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx
index 09c8f666..b1072f5d 100644
--- a/java/jni/direct_bt/DBTAdapter.cxx
+++ b/java/jni/direct_bt/DBTAdapter.cxx
@@ -975,17 +975,6 @@ jbyte Java_jau_direct_1bt_DBTAdapter_setNameImpl(JNIEnv *env, jobject obj, jstri
return (jbyte) number(HCIStatusCode::INTERNAL_FAILURE);
}
-jboolean Java_jau_direct_1bt_DBTAdapter_setDiscoverable(JNIEnv *env, jobject obj, jboolean value) {
- try {
- BTAdapter *adapter = jau::getJavaUplinkObject<BTAdapter>(env, obj);
- jau::JavaGlobalObj::check(adapter->getJavaObject(), E_FILE_LINE);
- return adapter->setDiscoverable(JNI_TRUE == value ? true : false) ? JNI_TRUE : JNI_FALSE;
- } catch(...) {
- rethrow_and_raise_java_exception(env);
- }
- return JNI_FALSE;
-}
-
jobject Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl(JNIEnv *env, jobject obj, jbyteArray jaddress, jbyte jaddressType) {
try {
BTAdapter *adapter = jau::getJavaUplinkObject<BTAdapter>(env, obj);
@@ -1027,17 +1016,6 @@ jobject Java_jau_direct_1bt_DBTAdapter_connectDeviceImpl(JNIEnv *env, jobject ob
return nullptr;
}
-jboolean Java_jau_direct_1bt_DBTAdapter_setPairable(JNIEnv *env, jobject obj, jboolean value) {
- try {
- BTAdapter *adapter = jau::getJavaUplinkObject<BTAdapter>(env, obj);
- jau::JavaGlobalObj::check(adapter->getJavaObject(), E_FILE_LINE);
- return adapter->setBondable(JNI_TRUE == value ? true : false) ? JNI_TRUE : JNI_FALSE;
- } catch(...) {
- rethrow_and_raise_java_exception(env);
- }
- return JNI_FALSE;
-}
-
void Java_jau_direct_1bt_DBTAdapter_printDeviceListsImpl(JNIEnv *env, jobject obj) {
try {
BTAdapter *adapter = jau::getJavaUplinkObject<BTAdapter>(env, obj);