diff options
-rw-r--r-- | api/direct_bt/GATTHandler.hpp | 3 | ||||
-rw-r--r-- | api/direct_bt/HCIComm.hpp | 3 | ||||
-rw-r--r-- | api/direct_bt/HCIHandler.hpp | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/api/direct_bt/GATTHandler.hpp b/api/direct_bt/GATTHandler.hpp index 00991339..8826f395 100644 --- a/api/direct_bt/GATTHandler.hpp +++ b/api/direct_bt/GATTHandler.hpp @@ -241,6 +241,9 @@ namespace direct_bt { */ GATTHandler(const std::shared_ptr<DBTDevice> & device) noexcept; + GATTHandler(const GATTHandler&) = delete; + void operator=(const GATTHandler&) = delete; + /** Destructor closing this instance including L2CAP channel, see {@link #disconnect()}. */ ~GATTHandler() noexcept; diff --git a/api/direct_bt/HCIComm.hpp b/api/direct_bt/HCIComm.hpp index d840d849..82e37113 100644 --- a/api/direct_bt/HCIComm.hpp +++ b/api/direct_bt/HCIComm.hpp @@ -67,6 +67,9 @@ namespace direct_bt { /** Constructing a newly opened HCI communication channel instance */ HCIComm(const uint16_t dev_id, const uint16_t channel) noexcept; + HCIComm(const HCIComm&) = delete; + void operator=(const HCIComm&) = delete; + /** * Releases this instance after issuing {@link #close()}. */ diff --git a/api/direct_bt/HCIHandler.hpp b/api/direct_bt/HCIHandler.hpp index 3e5547cb..befc450f 100644 --- a/api/direct_bt/HCIHandler.hpp +++ b/api/direct_bt/HCIHandler.hpp @@ -320,12 +320,12 @@ namespace direct_bt { template<typename hci_cmd_event_struct> const hci_cmd_event_struct* getMetaReplyStruct(std::shared_ptr<HCIEvent> event, HCIMetaEventType mec, HCIStatusCode *status) noexcept; - HCIHandler(const HCIHandler&) = delete; - void operator=(const HCIHandler&) = delete; - public: HCIHandler(const uint16_t dev_id, const BTMode btMode=BTMode::NONE) noexcept; + HCIHandler(const HCIHandler&) = delete; + void operator=(const HCIHandler&) = delete; + /** * Releases this instance after issuing {@link #close()}. */ |