diff options
author | Sven Gothel <[email protected]> | 2022-04-18 00:49:20 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-04-18 00:49:20 +0200 |
commit | 6a485caa282123fe927f0c8cb2a34c6845098a2f (patch) | |
tree | 8f863c637b79c267bb20ba6a6bf37c75f6b25a7c /java | |
parent | fe752bd73b7c69cc5aa90ced8cf9976916c2570a (diff) |
DBTManager.cxx: Adopt to jaulib FunctionDef changes
Diffstat (limited to 'java')
-rw-r--r-- | java/jni/direct_bt/DBTManager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTManager.cxx b/java/jni/direct_bt/DBTManager.cxx index 542e58a5..89e61267 100644 --- a/java/jni/direct_bt/DBTManager.cxx +++ b/java/jni/direct_bt/DBTManager.cxx @@ -101,8 +101,8 @@ static void _addMgmtCBOnce(JNIEnv *env, BTManager & mgmt, JNIGlobalRef jmgmtRef, throw jau::InternalError("BTManager has no "+jmethodName+"."+jmethodArgs+" method, for "+mgmt.toString(), E_FILE_LINE); } - // move BooleanDeviceCBContextRef into CaptureInvocationFunc and operator== includes javaCallback comparison - FunctionDef<bool, const MgmtEvent&> funcDef = bindCaptureFunc(std::make_shared<BooleanMgmtCBContext>(opc, jmgmtRef, mid), nativeCallback); + // move BooleanDeviceCBContextRef into CaptureValueInvocationFunc and operator== includes javaCallback comparison + FunctionDef<bool, const MgmtEvent&> funcDef = bindCaptureValueFunc(std::make_shared<BooleanMgmtCBContext>(opc, jmgmtRef, mid), nativeCallback); mgmt.addMgmtEventCallback(-1, opc, funcDef); } catch(...) { rethrow_and_raise_java_exception(env); |