18 #ifndef KAA_PLATFORM_UTILS_H_
19 #define KAA_PLATFORM_UTILS_H_
46 #define KAA_MESSAGE_WRITER(buffer, len) \
47 (kaa_platform_message_writer_t){ (buffer), (buffer), (buffer) + (len) }
49 #define KAA_MESSAGE_READER(buffer, len) \
50 (kaa_platform_message_reader_t){ (buffer), (buffer), (buffer) + (len) }
56 uint8_t *buf,
size_t len);
71 , uint32_t protocol_id
72 , uint16_t protocol_version);
75 , uint16_t extension_type
77 , uint32_t payload_size);
85 ,
const uint8_t *buffer
92 ,
size_t expected_size);
96 ,
size_t expected_size);
99 , uint32_t *protocol_id
100 , uint16_t *protocol_version
101 , uint16_t *extension_count);
104 , uint16_t *extension_type
105 , uint16_t *extension_options
106 , uint32_t *extension_payload_length);
113 #define KAA_ALIGNED_SIZE(s) ((s) + (KAA_ALIGNMENT - (s) % KAA_ALIGNMENT) % KAA_ALIGNMENT)
120 #define KAA_STATIC_ASSERT(name, expr) \
121 static char static_assertion_##name[expr] __attribute__((unused))
kaa_error_t
Definition: kaa_error.h:31