From 511b6fc169544f72ab61b27bbe607979fee7ca97 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 14 Sep 2022 15:41:12 +0200 Subject: jau::service_runner CB BTAdapter::l2capServer*(): Add 'noexcept' --- api/direct_bt/BTAdapter.hpp | 6 +++--- api/direct_bt/L2CAPComm.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'api') diff --git a/api/direct_bt/BTAdapter.hpp b/api/direct_bt/BTAdapter.hpp index 810e1e41..9d6f0da4 100644 --- a/api/direct_bt/BTAdapter.hpp +++ b/api/direct_bt/BTAdapter.hpp @@ -511,9 +511,9 @@ namespace direct_bt { std::unique_ptr l2cap_att; std::mutex mtx_l2cap_att; std::condition_variable cv_l2cap_att; - void l2capServerWork(jau::service_runner& sr); - void l2capServerInit(jau::service_runner& sr); - void l2capServerEnd(jau::service_runner& sr); + void l2capServerWork(jau::service_runner& sr) noexcept; + void l2capServerInit(jau::service_runner& sr) noexcept; + void l2capServerEnd(jau::service_runner& sr) noexcept; std::unique_ptr get_l2cap_connection(std::shared_ptr device); bool mgmtEvNewSettingsMgmt(const MgmtEvent& e) noexcept; diff --git a/api/direct_bt/L2CAPComm.hpp b/api/direct_bt/L2CAPComm.hpp index f897fed4..830bbc0c 100644 --- a/api/direct_bt/L2CAPComm.hpp +++ b/api/direct_bt/L2CAPComm.hpp @@ -173,7 +173,7 @@ namespace direct_bt { bool is_open() const noexcept { return is_open_; } /** The external `is interrupted` callback is used until close(), thereafter it is removed. */ - void set_interrupted_query(get_boolean_callback_t is_interrupted_cb) { is_interrupted_extern = is_interrupted_cb; } + void set_interrupted_query(get_boolean_callback_t is_interrupted_cb) noexcept { is_interrupted_extern = is_interrupted_cb; } /** Returns true if interrupted by internal or external cause, hence shall stop connecting and reading. */ bool interrupted() const noexcept { return interrupted_int() || interrupted_ext(); } -- cgit v1.2.3