summaryrefslogtreecommitdiffstats
path: root/java/direct_bt/tinyb
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-11 05:55:14 +0200
committerSven Gothel <[email protected]>2020-05-11 05:55:14 +0200
commit68710f85d7e5dbcb4ba7afbba026a576ef274c8b (patch)
tree7984794a95910843f2fab4820365e7402fca58f2 /java/direct_bt/tinyb
parent3a6f01ace07863149278827c28ef954fe2949329 (diff)
Move general types out of MgmtTypes; Extract DBTDevice + DBTAdapter into their own header files; Added DirectBT.hpp
Move general out of MgmtTypes - BTMode -> BTTypes.gpp - AdapterSetting -> DBTTypes.hpp - AdapterInfo -> DBTTypes.hpp - ConnectionInfo -> DBTTypes.hpp - NameAndShortName -> DBTTypes.hpp Consequently add 'to<Type>()' methods to the respective MgmtEvent types, allowing seamless constructing with validation. This data extraction is perfromed to isolate the Mgmt* type from the general API, as MgmtTypes and DBTManager are more implementation specific (-> BlueZ Linux Kernel). +++ Extract DBTDevice + DBTAdapter into their own header files. With the above move of general data types into DBTTypes.hpp, the extraction of the central DBTDevice + DBTAdapter types shall support clarity. +++ Added convenient DirectBT.hpp for user space applications.
Diffstat (limited to 'java/direct_bt/tinyb')
-rw-r--r--java/direct_bt/tinyb/DBTDevice.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/direct_bt/tinyb/DBTDevice.java b/java/direct_bt/tinyb/DBTDevice.java
index 75f053c4..9fc0a806 100644
--- a/java/direct_bt/tinyb/DBTDevice.java
+++ b/java/direct_bt/tinyb/DBTDevice.java
@@ -116,7 +116,8 @@ public class DBTDevice extends DBTObject implements BluetoothDevice
/**
* Special proxy of {@link DBTAdapter#addStatusListener(AdapterStatusListener)}
- * to be used from out constructor called via native deviceFound callback!
+ * to be used from the constructor called via native
+ * {@link AdapterStatusListener#deviceFound(BluetoothAdapter, BluetoothDevice, long)} callback.
* <p>
* FIXME: Without this proxy hook, we end up in a crash within the addStatusListener(..).
* FIXME: Analyze reason! Triage!