diff options
Diffstat (limited to 'src/components/connection_handler/include/connection_handler/connection_handler.h')
-rw-r--r-- | src/components/connection_handler/include/connection_handler/connection_handler.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/connection_handler/include/connection_handler/connection_handler.h b/src/components/connection_handler/include/connection_handler/connection_handler.h index 08bef97155..8fa52631ff 100644 --- a/src/components/connection_handler/include/connection_handler/connection_handler.h +++ b/src/components/connection_handler/include/connection_handler/connection_handler.h @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2014, Ford Motor Company * All rights reserved. * @@ -45,6 +45,12 @@ * \brief SmartDeviceLink connection_handler namespace. */ namespace connection_handler { + + enum CloseSessionReason { + kCommon = 0, + kFlood + }; + /** * \class ConnectionHandler * \brief SmartDeviceLink ConnectionHandler interface class @@ -100,13 +106,14 @@ class ConnectionHandler { /** * Close session associated with the key */ - virtual void CloseSession(uint32_t key) = 0; + virtual void CloseSession(uint32_t key, CloseSessionReason close_reason) = 0; /** * Close session */ virtual void CloseSession(ConnectionHandle connection_handle, - uint8_t session_id) = 0; + uint8_t session_id, + CloseSessionReason close_reason) = 0; /** * \brief Start heartbeat for specified session |