aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-11-17 03:49:44 +0100
committerSven Gothel <[email protected]>2021-11-17 03:49:44 +0100
commitb6b206a191029755bd155eaa0a1797c2f44a0cfc (patch)
tree4d57a503ed0026a2a829ea159e3667fdddcf74e6 /java/jni
parent67b914d7dbe89434cd95d0f64b98c59d34946578 (diff)
BTAdapter::startDiscovery(..): Add 'bool filter_dup=true' as last parameter; Java: Same, but no default value possible (minor API change)
Diffstat (limited to 'java/jni')
-rw-r--r--java/jni/direct_bt/DBTAdapter.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx
index 3602cd6e..c8f809d6 100644
--- a/java/jni/direct_bt/DBTAdapter.cxx
+++ b/java/jni/direct_bt/DBTAdapter.cxx
@@ -671,11 +671,12 @@ jlong Java_jau_direct_1bt_DBTAdapter_getLEFeaturesImpl(JNIEnv *env, jobject obj)
jbyte Java_jau_direct_1bt_DBTAdapter_startDiscoveryImpl(JNIEnv *env, jobject obj, jboolean keepAlive, jboolean le_scan_active,
jshort le_scan_interval, jshort le_scan_window,
- jbyte filter_policy)
+ jbyte filter_policy,
+ jboolean filter_dup)
{
try {
BTAdapter *adapter = jau::getJavaUplinkObject<BTAdapter>(env, obj);
- return (jbyte) number( adapter->startDiscovery(keepAlive, le_scan_active, le_scan_interval, le_scan_window, filter_policy) );
+ return (jbyte) number( adapter->startDiscovery(keepAlive, le_scan_active, le_scan_interval, le_scan_window, filter_policy, filter_dup==JNI_TRUE) );
} catch(...) {
rethrow_and_raise_java_exception(env);
}