From b59336ba412fb61046d7f896320b26e797d834e4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 1 Feb 2021 16:33:36 +0100 Subject: HCIHandle: Expose const HCIEnv singleton instance --- api/direct_bt/HCIHandler.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/direct_bt/HCIHandler.hpp b/api/direct_bt/HCIHandler.hpp index 2fe37b48..50de109f 100644 --- a/api/direct_bt/HCIHandler.hpp +++ b/api/direct_bt/HCIHandler.hpp @@ -168,6 +168,8 @@ namespace direct_bt { static const pid_t pidSelf; + const HCIEnv & env; + private: class HCIConnection { private: @@ -214,7 +216,6 @@ namespace direct_bt { static MgmtEvent::Opcode translate(HCIEventType evt, HCIMetaEventType met) noexcept; - const HCIEnv & env; const uint16_t dev_id; POctets rbuffer; HCIComm comm; -- cgit v1.2.3