diff options
author | Sven Gothel <[email protected]> | 2022-04-10 02:14:47 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-04-10 02:14:47 +0200 |
commit | 3f1baddbb3298109626456dd70e5319df18df417 (patch) | |
tree | 7b1154d0b0e17fa60061e6ddaca7e242bfcdd5b7 /api/direct_bt/BTGattHandler.hpp | |
parent | 35ecc48639ae1dd20a3d7e4428559cc199e0ca28 (diff) |
L2CAPComm: Rename L2CAP{Comm->Client} and have L2CAP{Client,Server} derive from new common L2CAPClientServer
This is a preparation to utilize common setBTSecurityLevelImpl(..) for L2CAPServer w/o code duplication.
Diffstat (limited to 'api/direct_bt/BTGattHandler.hpp')
-rw-r--r-- | api/direct_bt/BTGattHandler.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/direct_bt/BTGattHandler.hpp b/api/direct_bt/BTGattHandler.hpp index 5db70978..64103569 100644 --- a/api/direct_bt/BTGattHandler.hpp +++ b/api/direct_bt/BTGattHandler.hpp @@ -436,7 +436,7 @@ namespace direct_bt { /** BTGattHandler's device weak back-reference */ std::weak_ptr<BTDevice> wbr_device; GATTRole role; - L2CAPComm& l2cap; + L2CAPClient& l2cap; const std::string deviceString; mutable std::recursive_mutex mtx_command; @@ -546,7 +546,7 @@ namespace direct_bt { * @param l2cap_att the underlying used L2CAP * @param supervision_timeout the connection supervising timeout in [ms] */ - BTGattHandler(const BTDeviceRef & device, L2CAPComm& l2cap_att, const int32_t supervision_timeout) noexcept; + BTGattHandler(const BTDeviceRef & device, L2CAPClient& l2cap_att, const int32_t supervision_timeout) noexcept; BTGattHandler(const BTGattHandler&) = delete; void operator=(const BTGattHandler&) = delete; @@ -567,7 +567,7 @@ namespace direct_bt { bool isConnected() const noexcept { return is_connected ; } bool hasIOError() const noexcept { return has_ioerror; } - std::string getStateString() const noexcept { return L2CAPComm::getStateString(is_connected, has_ioerror); } + std::string getStateString() const noexcept { return L2CAPClientServer::getStateString(is_connected, has_ioerror); } /** * Disconnect this BTGattHandler and optionally the associated device |