diff options
Diffstat (limited to 'src/components/transport_manager/include/transport_manager/android/android_ipc_control_protocol.h')
-rw-r--r-- | src/components/transport_manager/include/transport_manager/android/android_ipc_control_protocol.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/components/transport_manager/include/transport_manager/android/android_ipc_control_protocol.h b/src/components/transport_manager/include/transport_manager/android/android_ipc_control_protocol.h index dcc05a749e..f11295e445 100644 --- a/src/components/transport_manager/include/transport_manager/android/android_ipc_control_protocol.h +++ b/src/components/transport_manager/include/transport_manager/android/android_ipc_control_protocol.h @@ -1,35 +1,33 @@ #ifndef SRC_COMPONENTS_TRANSPORT_MANAGER_INCLUDE_TRANSPORT_MANAGER_ANDROID_ANDROID_IPC_CONTROL_PROTOCOL_H_ #define SRC_COMPONENTS_TRANSPORT_MANAGER_INCLUDE_TRANSPORT_MANAGER_ANDROID_ANDROID_IPC_CONTROL_PROTOCOL_H_ -#include <vector> #include <stdint.h> #include <string> +#include <vector> namespace transport_manager { namespace transport_adapter { enum class AndroidIpcProtocolActions { - INVALID_ENUM = -1, - ON_DEVICE_CONNECTED, - ON_DEVICE_DISCONNECTED, + INVALID_ENUM = -1, + ON_DEVICE_CONNECTED, + ON_DEVICE_DISCONNECTED, }; using MsgData = std::vector<uint8_t>; struct AndroidIpcControlProtocol { + AndroidIpcControlProtocol() = delete; - AndroidIpcControlProtocol() = delete; - - static AndroidIpcProtocolActions GetMessageActionType(const MsgData& message); - static std::string GetAddress(const MsgData& message); - static std::string GetName(const MsgData& message); - - static AndroidIpcProtocolActions GetActionFromString(const std::string& str); - static std::string GetActionString(const AndroidIpcProtocolActions action); + static AndroidIpcProtocolActions GetMessageActionType(const MsgData& message); + static std::string GetAddress(const MsgData& message); + static std::string GetName(const MsgData& message); + static AndroidIpcProtocolActions GetActionFromString(const std::string& str); + static std::string GetActionString(const AndroidIpcProtocolActions action); }; -} -} +} // namespace transport_adapter +} // namespace transport_manager #endif // SRC_COMPONENTS_TRANSPORT_MANAGER_INCLUDE_TRANSPORT_MANAGER_ANDROID_ANDROID_IPC_CONTROL_PROTOCOL_H_ |