diff options
author | AKalinich-Luxoft <AKalinich@luxoft.com> | 2017-12-22 15:13:21 +0200 |
---|---|---|
committer | AKalinich-Luxoft <AKalinich@luxoft.com> | 2018-01-29 09:04:14 +0200 |
commit | 7898292b5de8d80354ab3b9fecacbadcf9d41c61 (patch) | |
tree | cf588c13a8f522d5672c90316b31f87e42ee03f9 /src/components/protocol_handler/include/protocol_handler | |
parent | 96a14a8de28ea2ad877745494f2e53211ffb34b9 (diff) | |
download | sdl_core-7898292b5de8d80354ab3b9fecacbadcf9d41c61.tar.gz |
Refactoring in connection/protocol handlers
NotifySessionStartedResult function were updated to use
StartingSessionContext class for accessing to needed data
instead of tones of separate parameters.
Also in protocol handler some raw pointer data were replaced
with smart objects.
Diffstat (limited to 'src/components/protocol_handler/include/protocol_handler')
-rw-r--r-- | src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h index dc1a119223..65f03900db 100644 --- a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h +++ b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h @@ -391,7 +391,7 @@ class ProtocolHandlerImpl * Only valid when generated_session_id is 0. Note, even if * generated_session_id is 0, the list may be empty. */ - void NotifySessionStartedResult( + DEPRECATED void NotifySessionStartedResult( int32_t connection_id, uint8_t session_id, uint8_t generated_session_id, @@ -399,6 +399,17 @@ class ProtocolHandlerImpl bool protection, std::vector<std::string>& rejected_params) OVERRIDE; + /** + * @brief Called by connection handler to notify the result of + * OnSessionStartedCallback(). + * @param context reference to structure with started session data + * @param rejected_params list of parameters name that are rejected. + * Only valid when generated_session_id is 0. Note, even if + * generated_session_id is 0, the list may be empty. + */ + void NotifySessionStarted(const SessionContext& context, + std::vector<std::string>& rejected_params) OVERRIDE; + #ifdef BUILD_TESTS const impl::FromMobileQueue& get_from_mobile_queue() const { return raw_ford_messages_from_mobile_; |