aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-01-30 01:34:06 +0100
committerSven Gothel <[email protected]>2021-01-30 01:34:06 +0100
commit14f3fa5e374d1fce1f6cc0a2df742fdc817e24b4 (patch)
tree4b0f0253105ea058d2def43392855ff9af568102 /src
parent4df98edb48b3dde8fb7403d0878eac82377d115e (diff)
BTDevice.cpp connect*() methods are all noexcept, since all invoked methods are noexcept; Earmark in BTDevice.java for direct_bt.
Diffstat (limited to 'src')
-rw-r--r--src/direct_bt/BTDevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/direct_bt/BTDevice.cpp b/src/direct_bt/BTDevice.cpp
index 3fa0a62d..27fd5be4 100644
--- a/src/direct_bt/BTDevice.cpp
+++ b/src/direct_bt/BTDevice.cpp
@@ -263,7 +263,7 @@ std::shared_ptr<ConnectionInfo> BTDevice::getConnectionInfo() noexcept {
HCIStatusCode BTDevice::connectLE(uint16_t le_scan_interval, uint16_t le_scan_window,
uint16_t conn_interval_min, uint16_t conn_interval_max,
- uint16_t conn_latency, uint16_t supervision_timeout)
+ uint16_t conn_latency, uint16_t supervision_timeout) noexcept
{
const std::lock_guard<std::recursive_mutex> lock_conn(mtx_connect); // RAII-style acquire and relinquish via destructor
if( !adapter.isPowered() ) {
@@ -354,7 +354,7 @@ HCIStatusCode BTDevice::connectLE(uint16_t le_scan_interval, uint16_t le_scan_wi
return status;
}
-HCIStatusCode BTDevice::connectBREDR(const uint16_t pkt_type, const uint16_t clock_offset, const uint8_t role_switch)
+HCIStatusCode BTDevice::connectBREDR(const uint16_t pkt_type, const uint16_t clock_offset, const uint8_t role_switch) noexcept
{
const std::lock_guard<std::recursive_mutex> lock_conn(mtx_connect); // RAII-style acquire and relinquish via destructor
if( !adapter.isPowered() ) {
@@ -394,7 +394,7 @@ HCIStatusCode BTDevice::connectBREDR(const uint16_t pkt_type, const uint16_t clo
return status;
}
-HCIStatusCode BTDevice::connectDefault()
+HCIStatusCode BTDevice::connectDefault() noexcept
{
switch( addressAndType.type ) {
case BDAddressType::BDADDR_LE_PUBLIC: