summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-25 03:46:11 +0200
committerSven Gothel <[email protected]>2020-05-25 03:46:11 +0200
commit5f3be51c4d6d31d00be808088a60674fcea46969 (patch)
treee51a3d3bfa47745e05cf2c1ad2f55293dd391601 /api
parentf82491139dd92ee17dbd6625462fa7f6e59fbf60 (diff)
DBTAdapter: Add isDeviceWhitelisted(..) wiring to DBTManager for complete exposure.
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTAdapter.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/direct_bt/DBTAdapter.hpp b/api/direct_bt/DBTAdapter.hpp
index 0f5c578f..18c48440 100644
--- a/api/direct_bt/DBTAdapter.hpp
+++ b/api/direct_bt/DBTAdapter.hpp
@@ -266,6 +266,11 @@ namespace direct_bt {
bool closeHCI();
/**
+ * Returns true, if the adapter's device is already whitelisted.
+ */
+ bool isDeviceWhitelisted(const EUI48 &address);
+
+ /**
* Add the given device to the adapter's autoconnect whitelist.
* <p>
* The given connection parameter will be uploaded to the kernel for the given device first.