summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler/include/protocol_handler/protocol_payload.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/protocol_handler/include/protocol_handler/protocol_payload.h')
-rw-r--r--src/components/protocol_handler/include/protocol_handler/protocol_payload.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_payload.h b/src/components/protocol_handler/include/protocol_handler/protocol_payload.h
index 861d29d4d4..ed61d3588d 100644
--- a/src/components/protocol_handler/include/protocol_handler/protocol_payload.h
+++ b/src/components/protocol_handler/include/protocol_handler/protocol_payload.h
@@ -48,9 +48,11 @@ namespace protocol_handler {
// Applink Protocolv5 4.1.2 Protocol Payload Binary header
struct ProtocolPayloadHeaderV2 {
ProtocolPayloadHeaderV2()
- : rpc_type(kRpcTypeReserved),
- rpc_function_id(0), correlation_id(0), json_size(0) {}
- RpcType rpc_type;
+ : rpc_type(kRpcTypeReserved)
+ , rpc_function_id(0)
+ , correlation_id(0)
+ , json_size(0) {}
+ RpcType rpc_type;
uint32_t rpc_function_id;
uint32_t correlation_id;
uint32_t json_size;
@@ -66,14 +68,18 @@ struct ProtocolPayloadV2 {
// Procedures that extract and validate defined protocol structures from
// a bit stream.
// If error during parsing is detected, bit stream is marked as invalid
-void Extract(utils::BitStream *bs, ProtocolPayloadHeaderV2 *headerv2);
-void Extract(utils::BitStream *bs, ProtocolPayloadV2 *payload, size_t payload_size);
+void Extract(utils::BitStream* bs, ProtocolPayloadHeaderV2* headerv2);
+void Extract(utils::BitStream* bs,
+ ProtocolPayloadV2* payload,
+ size_t payload_size);
-std::ostream &operator<<(std::ostream &os, const ProtocolPayloadHeaderV2 &payload_header);
-std::ostream &operator<<(std::ostream &os, const ProtocolPayloadV2 &payload);
+std::ostream& operator<<(std::ostream& os,
+ const ProtocolPayloadHeaderV2& payload_header);
+std::ostream& operator<<(std::ostream& os, const ProtocolPayloadV2& payload);
-//Add for tests
+// Add for tests
size_t ProtocolPayloadV2SizeBits();
-} // namespace protocol_handler
+} // namespace protocol_handler
-#endif /* SRC_COMPONENTS_PROTOCOL_HANDLER_INCLUDE_PROTOCOL_HANDLER_PROTOCOL_PAYLOAD_H_ */
+#endif /* SRC_COMPONENTS_PROTOCOL_HANDLER_INCLUDE_PROTOCOL_HANDLER_PROTOCOL_PAYLOAD_H_ \
+ */