aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-25 09:16:52 +0200
committerSven Gothel <[email protected]>2020-09-25 09:16:52 +0200
commitc3ff78119957a98c8736b513d5f6cc39f80292f9 (patch)
tree3170a987fe0ed663595dd6a61eea6e12ecc78307 /api
parent537fa75623f0f65a5665cd15e2f41ca35b11ce48 (diff)
BluetoothAdapter.getManager() added; BluetoothManager.Settings added; D*Manager.getManager() use 'Magic Statics' now
- Magic Statics usage to avoid synchronization for singletons, like C++11 - BluetoothManager.Settings provide the Direct-BT related settings of isCharacteristicValueCacheNotificationSupported(), moved from the BluetoothFactory. - Having implementation agnostic access to the Manager from Adapter is helpful for user applications, as this notion was lost during the interface abstraction (refactoring split for having multiple implementations).
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTAdapter.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp
index 7130b1e0..0b0adaba 100644
--- a/api/direct_bt/DBTAdapter.hpp
+++ b/api/direct_bt/DBTAdapter.hpp
@@ -346,7 +346,7 @@ namespace direct_bt {
void setBondable(bool value) noexcept;
/**
- * Returns a reference to the used singleton DBTManager instance.
+ * Returns a reference to the used singleton DBTManager instance, used to create this adapter.
*/
DBTManager& getManager() const noexcept { return mgmt; }