aboutsummaryrefslogtreecommitdiffstats
path: root/java/tinyb
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-28 02:00:55 +0200
committerSven Gothel <[email protected]>2020-07-28 02:00:55 +0200
commit1e77c24637204c0146e1e035d66b5e74d5f3d5ed (patch)
tree88279d4622cb2162016f658eecccad42cce0abc9 /java/tinyb
parentf417fc491acd502fb5ed7ae2d3c6fc887bba8630 (diff)
Expose hciConnectionHandle: AdapterStatusListener connect/disconnect (C++/Java) and BluetoothDevice.java
To help tracking a device in user space and support more 'down to the metal' access, the HCI connection handle has been exposed to the Java DBTDevice and the AdapterStatusListener. For the latter, especially disconnectDevice(..) is of interest, since the disconnected handle is lost already when the callback gets invoked.
Diffstat (limited to 'java/tinyb')
-rw-r--r--java/tinyb/dbus/DBusDevice.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/tinyb/dbus/DBusDevice.java b/java/tinyb/dbus/DBusDevice.java
index 225b01d0..bb24d0dd 100644
--- a/java/tinyb/dbus/DBusDevice.java
+++ b/java/tinyb/dbus/DBusDevice.java
@@ -195,6 +195,9 @@ public class DBusDevice extends DBusObject implements BluetoothDevice
public native boolean getConnected();
@Override
+ public final short getConnectionHandle() { return 0; /* FIXME */ }
+
+ @Override
public native void enableConnectedNotifications(BluetoothNotification<Boolean> callback);
@Override