50 #define KAA_RETURN_IF_ERR(E) \
51 do { if (E) return E; } while (0)
53 #define KAA_RETURN_IF_NIL(p, E) \
54 do { if (!(p)) return E; } while (0)
56 #define KAA_RETURN_IF_NIL2(p1, p2, E) \
57 do { if (!(p1) || !(p2)) return E; } while (0)
59 #define KAA_RETURN_IF_NIL3(p1, p2, p3, E) \
60 do { if (!(p1) || !(p2) || !(p3)) return E; } while (0)
62 #define KAA_RETURN_IF_NIL4(p1, p2, p3, p4, E) \
63 do { if (!(p1) || !(p2) || !(p3) || !(p4)) return E; } while (0)
65 #define KAA_RETURN_IF_NIL5(p1, p2, p3, p4, p5,E) \
66 do { if (!(p1) || !(p2) || !(p3) || !(p4) || !(p5)) return E; } while (0)
78 return first && second && first->
id == second->
id && first->
version == second->
version;
94 #define KAA_ENDPOINT_ID_LENGTH 20
uint8_t kaa_endpoint_id[KAA_ENDPOINT_ID_LENGTH]
Definition: kaa_common.h:95
static int kaa_transport_protocol_id_equals(const kaa_transport_protocol_id_t *first, const kaa_transport_protocol_id_t *second)
Definition: kaa_common.h:76
Definition: kaa_common.h:38
Definition: kaa_common.h:42
uint16_t version
Definition: kaa_common.h:73
#define KAA_ENDPOINT_ID_LENGTH
Definition: kaa_common.h:94
Identifier used to uniquely represent transport protocol.
Definition: kaa_common.h:71
Definition: kaa_common.h:44
uint32_t id
Definition: kaa_common.h:86
kaa_extension_id
Kaa extensions.
Definition: kaa_common.h:35
Definition: kaa_common.h:39
Definition: kaa_common.h:41
Definition: kaa_common.h:43
Definition: kaa_common.h:37
uint16_t connection_data_len
Definition: kaa_common.h:87
const uint8_t * kaa_endpoint_id_p
Definition: kaa_common.h:96
char * connection_data
Definition: kaa_common.h:88
Definition: kaa_common.h:40
Connection parameters used by transport channels to establish connection both to Bootstrap and Operat...
Definition: kaa_common.h:85
uint32_t id
Definition: kaa_common.h:72