aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-11-15 07:14:22 +0100
committerSven Gothel <[email protected]>2020-11-15 07:14:22 +0100
commit9c845700a73664806d58b26b332062aa2e946730 (patch)
tree55f439a0da643fb91af730ec0985c2ff32fa1a2f /java/jni
parent37d0b1d03cf4449e3f67e2dc96cff6bb3f94fddb (diff)
BluetoothDevice: 'getCurrentPairing[Mode|State]()' -> 'getPairing[Mode|State]()
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/DBTDevice.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/jni/direct_bt/DBTDevice.cxx b/java/jni/direct_bt/DBTDevice.cxx
index acc31ee1..c0ce02f6 100644
--- a/java/jni/direct_bt/DBTDevice.cxx
+++ b/java/jni/direct_bt/DBTDevice.cxx
@@ -372,24 +372,24 @@ jbyte Java_direct_1bt_tinyb_DBTDevice_connectLEImpl1(JNIEnv *env, jobject obj,
return (jbyte) number(HCIStatusCode::INTERNAL_FAILURE);
}
-jbyte Java_direct_1bt_tinyb_DBTDevice_getCurrentPairingModeImpl(JNIEnv *env, jobject obj) {
+jbyte Java_direct_1bt_tinyb_DBTDevice_getPairingModeImpl(JNIEnv *env, jobject obj) {
try {
DBTDevice *device = getJavaUplinkObject<DBTDevice>(env, obj);
JavaGlobalObj::check(device->getJavaObject(), E_FILE_LINE);
- return number( device->getCurrentPairingMode() );
+ return number( device->getPairingMode() );
} catch(...) {
rethrow_and_raise_java_exception(env);
}
return number( PairingMode::NONE );
}
-jbyte Java_direct_1bt_tinyb_DBTDevice_getCurrentPairingStateImpl(JNIEnv *env, jobject obj) {
+jbyte Java_direct_1bt_tinyb_DBTDevice_getPairingStateImpl(JNIEnv *env, jobject obj) {
try {
DBTDevice *device = getJavaUplinkObject<DBTDevice>(env, obj);
JavaGlobalObj::check(device->getJavaObject(), E_FILE_LINE);
- return static_cast<uint8_t>( device->getCurrentPairingState() );
+ return static_cast<uint8_t>( device->getPairingState() );
} catch(...) {
rethrow_and_raise_java_exception(env);
}