summaryrefslogtreecommitdiff
path: root/src/components/connection_handler/include/connection_handler/connection_handler_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/connection_handler/include/connection_handler/connection_handler_impl.h')
-rw-r--r--src/components/connection_handler/include/connection_handler/connection_handler_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/connection_handler/include/connection_handler/connection_handler_impl.h b/src/components/connection_handler/include/connection_handler/connection_handler_impl.h
index cca11e5f57..b7b791a5c1 100644
--- a/src/components/connection_handler/include/connection_handler/connection_handler_impl.h
+++ b/src/components/connection_handler/include/connection_handler/connection_handler_impl.h
@@ -620,6 +620,15 @@ class ConnectionHandlerImpl
const uint8_t GetSessionIdFromSecondaryTransport(
transport_manager::ConnectionUID secondary_transport_id) const;
+ /**
+ * @brief Get pointer to the primary connection by connection handle
+ * @param connection_handle handle of the current connection
+ * @return pointer to the primary connection if current one is secondary
+ * otherwise returns pointer to the same connection
+ */
+ Connection* GetPrimaryConnection(
+ const ConnectionHandle connection_handle) const;
+
const ConnectionHandlerSettings& settings_;
/**
* \brief Pointer to observer