summaryrefslogtreecommitdiff
path: root/src/components/connection_handler/include/connection_handler/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/connection_handler/include/connection_handler/connection.h')
-rw-r--r--src/components/connection_handler/include/connection_handler/connection.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components/connection_handler/include/connection_handler/connection.h b/src/components/connection_handler/include/connection_handler/connection.h
index b0f9586046..9b72d60776 100644
--- a/src/components/connection_handler/include/connection_handler/connection.h
+++ b/src/components/connection_handler/include/connection_handler/connection.h
@@ -212,6 +212,13 @@ class Connection {
void SetProtectionFlag(const uint8_t session_id,
const protocol_handler::ServiceType& service_type);
+#endif // ENABLE_SECURITY
+ /**
+ * @brief Returns map of sessions which have been opened in
+ * current connection.
+ */
+ const SessionMap session_map() const;
+
/**
* @brief Check if session contains service with specified service type
* @param session_id id of session to check
@@ -222,13 +229,6 @@ class Connection {
const uint8_t session_id,
const protocol_handler::ServiceType& service_type) const;
-#endif // ENABLE_SECURITY
- /**
- * @brief Returns map of sessions which have been opened in
- * current connection.
- */
- const SessionMap session_map() const;
-
/**
* @brief Close session
* @param session_id session id