diff --git a/common/common/inc/tlv_wrapper.h b/common/common/inc/tlv_wrapper.h index 23666cee50f16fe0fad0a8a5d752486067fc31f0..4de6ee24258ebe990735c7855440b8c3884aec0d 100644 --- a/common/common/inc/tlv_wrapper.h +++ b/common/common/inc/tlv_wrapper.h @@ -24,10 +24,10 @@ #define MAX_BUFFER_SIZE 512000 #define TLV_HEADER_LEN (sizeof(int32_t) + sizeof(uint32_t)) -int32_t SerializeTlvWrapper(const TlvListNode *head, uint8_t*buffer, +int32_t SerializeTlvWrapper(const TlvListNode *head, uint8_t *buffer, uint32_t maxSize, uint32_t *contentSize); -int32_t ParseTlvWrapper(const uint8_t*buffer, uint32_t bufferSize, TlvListNode *head); +int32_t ParseTlvWrapper(const uint8_t *buffer, uint32_t bufferSize, TlvListNode *head); int32_t ParseGetHeadTag(const TlvListNode *node, int32_t *tag); int32_t ParseUint64Para(TlvListNode *node, int32_t msgType, uint64_t *retVal); @@ -44,10 +44,10 @@ int32_t GetInt32Para(TlvListNode *head, int32_t msgType, int32_t *retVal); Buffer *GetBuffPara(TlvListNode *head, int32_t msgType); int32_t GetUint8Para(TlvListNode *head, int32_t msgType, uint8_t *retVal); -int32_t TlvAppendByte(TlvListNode *head, int32_t type, const uint8_t*value, uint32_t length); +int32_t TlvAppendByte(TlvListNode *head, int32_t type, const uint8_t *value, uint32_t length); int32_t TlvAppendShort(TlvListNode *head, int32_t type, short value); int32_t TlvAppendInt(TlvListNode *head, int32_t type, uint32_t value); int32_t TlvAppendLong(TlvListNode *head, int32_t type, uint64_t value); -int32_t TlvAppendObject(TlvListNode *head, int32_t type, const uint8_t*buffer, uint32_t length); +int32_t TlvAppendObject(TlvListNode *head, int32_t type, const uint8_t *buffer, uint32_t length); #endif // TLV_WRAPPER_H \ No newline at end of file