summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-06-24 17:01:33 +0300
committerPetre Eftime <[email protected]>2016-07-01 15:11:25 +0300
commit52ff32b31b53e11a75ab651e720837c3736ef2e6 (patch)
treef755dc0810afb30d8db0684e06eaff28d60c792a /src
parent0459435831dd7d4331fd9f0e86a645c35e2940ce (diff)
java: Add initial support for Java notifications
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/BluetoothDevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/BluetoothDevice.cpp b/src/BluetoothDevice.cpp
index 943efc67..ad040d80 100644
--- a/src/BluetoothDevice.cpp
+++ b/src/BluetoothDevice.cpp
@@ -310,6 +310,10 @@ void BluetoothDevice::enable_paired_notifications(
void *userdata) {
paired_callback = std::bind(callback, std::ref(*this), std::placeholders::_1, userdata);
}
+void BluetoothDevice::enable_paired_notifications(
+ std::function<void(bool)> callback) {
+ paired_callback = callback;
+}
void BluetoothDevice::disable_paired_notifications() {
paired_callback = nullptr;
}