aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-08 09:36:06 +0200
committerSven Gothel <[email protected]>2020-06-08 09:36:06 +0200
commit704395713943a91635d53b13f17c463eee5d994c (patch)
treefb7503b8bd14e0c51dbeed6e757f06e48aba8011 /api
parent9ac64beeefabb3a9cd8c6321fe0d617e0995a0c3 (diff)
DBTDevice: make 'getSharedInstance()' public
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTDevice.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/direct_bt/DBTDevice.hpp b/api/direct_bt/DBTDevice.hpp
index 1ece6f83..9dd27ebe 100644
--- a/api/direct_bt/DBTDevice.hpp
+++ b/api/direct_bt/DBTDevice.hpp
@@ -79,9 +79,6 @@ namespace direct_bt {
EIRDataType update(EInfoReport const & data);
EIRDataType update(GenericAccess const &data, const uint64_t timestamp);
- /** Returns the shared pointer of this instance managed by the adapter. */
- std::shared_ptr<DBTDevice> getSharedInstance() const;
-
void releaseSharedInstance() const;
void notifyDisconnected();
void notifyConnected();
@@ -110,6 +107,9 @@ namespace direct_bt {
/** Returns the managing adapter */
DBTAdapter & getAdapter() const { return adapter; }
+ /** Returns the shared pointer of this instance managed by the adapter. */
+ std::shared_ptr<DBTDevice> getSharedInstance() const;
+
/**
* Returns the timestamp in monotonic milliseconds when this device instance has been created, either via discovery or direct connection.
* @see BasicTypes::getCurrentMilliseconds()