diff options
author | Sven Gothel <[email protected]> | 2020-05-27 05:38:55 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-27 05:38:55 +0200 |
commit | 7d44c2a622c20866de864846177dbd84f815542b (patch) | |
tree | 9e5d1bc75cf1bdebcbc3e237366fe9ae813eee1d /java/jni/direct_bt/DBTDevice.cxx | |
parent | fb45588b7a4813dd5e3a2b1a9af55f6799d1de19 (diff) |
DBTDevice.cxx JNI: Fix connectImpl* signature
Diffstat (limited to 'java/jni/direct_bt/DBTDevice.cxx')
-rw-r--r-- | java/jni/direct_bt/DBTDevice.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/java/jni/direct_bt/DBTDevice.cxx b/java/jni/direct_bt/DBTDevice.cxx index 6968581e..8283f885 100644 --- a/java/jni/direct_bt/DBTDevice.cxx +++ b/java/jni/direct_bt/DBTDevice.cxx @@ -286,7 +286,7 @@ jboolean Java_direct_1bt_tinyb_DBTDevice_remove(JNIEnv *env, jobject obj) return JNI_TRUE; } -jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl(JNIEnv *env, jobject obj) +jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl__(JNIEnv *env, jobject obj) { try { DBTDevice *device = getInstance<DBTDevice>(env, obj); @@ -315,10 +315,10 @@ jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl(JNIEnv *env, jobject obj) return JNI_FALSE; } -jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl(JNIEnv *env, jobject obj, - jshort interval, jshort window, - jshort min_interval, jshort max_interval, - jshort latency, jshort timeout) +jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl__SSSSSS(JNIEnv *env, jobject obj, + jshort interval, jshort window, + jshort min_interval, jshort max_interval, + jshort latency, jshort timeout) { try { DBTDevice *device = getInstance<DBTDevice>(env, obj); @@ -327,11 +327,11 @@ jboolean Java_direct_1bt_tinyb_DBTDevice_connectImpl(JNIEnv *env, jobject obj, switch( device->addressType ) { case BDAddressType::BDADDR_LE_PUBLIC: hciHandle = device->connectLE(HCIAddressType::HCIADDR_LE_PUBLIC, HCIAddressType::HCIADDR_LE_PUBLIC, - interval, window, min_interval, max_interval, latency, timeout); + interval, window, min_interval, max_interval, latency, timeout); break; case BDAddressType::BDADDR_LE_RANDOM: hciHandle = device->connectLE(HCIAddressType::HCIADDR_LE_RANDOM, HCIAddressType::HCIADDR_LE_PUBLIC, - interval, window, min_interval, max_interval, latency, timeout); + interval, window, min_interval, max_interval, latency, timeout); break; default: hciHandle = device->connectDefault(); |