summaryrefslogtreecommitdiff
path: root/src/components/include/protocol_handler/session_observer.h
diff options
context:
space:
mode:
authorfronneburg <fronneburg@xevo.com>2018-04-10 14:37:16 -0700
committerfronneburg <fronneburg@xevo.com>2018-04-11 16:44:24 -0700
commit52da74267b8d7fe21ce497f5ce1b86c43e49a804 (patch)
tree3f4bedfea0c3c42117846124b16007ea922a926a /src/components/include/protocol_handler/session_observer.h
parent60e2341813fbb9c77c15a50c69e7a66f9102fdd9 (diff)
downloadsdl_core-52da74267b8d7fe21ce497f5ce1b86c43e49a804.tar.gz
Merge branch 'feature/Ford-WiFi' of ssh://autobitbucket.corp.xevo.com:7999/nar/sdl-core into feature/Ford-WiFi
Diffstat (limited to 'src/components/include/protocol_handler/session_observer.h')
-rw-r--r--src/components/include/protocol_handler/session_observer.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/components/include/protocol_handler/session_observer.h b/src/components/include/protocol_handler/session_observer.h
index 8560843da3..e6b7b33d14 100644
--- a/src/components/include/protocol_handler/session_observer.h
+++ b/src/components/include/protocol_handler/session_observer.h
@@ -90,6 +90,37 @@ struct SessionContext {
/**
* @brief Constructor
+ * @param connection_id_ Connection identifier within which session is
+ * started.
+ * @param session_id Session ID specified to OnSessionStartedCallback()
+ * @param new_session_id Session ID generated
+ * @param service_type Type of service
+ * @param hash_id Hash ID generated from connection_handle and
+ * new_session_id
+ * @param is_protected Whether service will be protected
+ * @param is_new_service Whether service was already established
+ **/
+ DEPRECATED SessionContext(transport_manager::ConnectionUID connection_id,
+ uint8_t session_id,
+ uint8_t new_session_id,
+ protocol_handler::ServiceType service_type,
+ uint32_t hash_id,
+ const bool is_protected)
+ : primary_connection_id_(connection_id)
+ , connection_id_(connection_id)
+ , initial_session_id_(session_id)
+ , new_session_id_(new_session_id)
+ , service_type_(service_type)
+ , hash_id_(hash_id)
+ , is_protected_(is_protected)
+#ifdef ENABLE_SECURITY
+ , is_new_service_(false)
+ , is_ptu_required_(false)
+#endif // ENABLE_SECURITY
+ {}
+
+ /**
+ * @brief Constructor
* @param primary_connection_id Connection identifier of the primary
* connection in which the session is started
* @param connection_id_ Connection identifier within which session is