From 9c845700a73664806d58b26b332062aa2e946730 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 15 Nov 2020 07:14:22 +0100 Subject: BluetoothDevice: 'getCurrentPairing[Mode|State]()' -> 'getPairing[Mode|State]() --- java/jni/direct_bt/DBTDevice.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'java/jni') 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(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(env, obj); JavaGlobalObj::check(device->getJavaObject(), E_FILE_LINE); - return static_cast( device->getCurrentPairingState() ); + return static_cast( device->getPairingState() ); } catch(...) { rethrow_and_raise_java_exception(env); } -- cgit v1.2.3