Kaa client C SDK
|
Common C EP SDK definitions and small utilities. More...
Go to the source code of this file.
Data Structures | |
struct | kaa_transport_protocol_id_t |
Identifier used to uniquely represent transport protocol. More... | |
struct | kaa_access_point_t |
Connection parameters used by transport channels to establish connection both to Bootstrap and Operations servers. More... | |
Macros | |
#define | KAA_RETURN_IF_ERR(E) do { if (E) return E; } while (0) |
#define | KAA_RETURN_IF_NIL(p, E) do { if (!(p)) return E; } while (0) |
#define | KAA_RETURN_IF_NIL2(p1, p2, E) do { if (!(p1) || !(p2)) return E; } while (0) |
#define | KAA_RETURN_IF_NIL3(p1, p2, p3, E) do { if (!(p1) || !(p2) || !(p3)) return E; } while (0) |
#define | KAA_RETURN_IF_NIL4(p1, p2, p3, p4, E) do { if (!(p1) || !(p2) || !(p3) || !(p4)) return E; } while (0) |
#define | KAA_RETURN_IF_NIL5(p1, p2, p3, p4, p5, E) do { if (!(p1) || !(p2) || !(p3) || !(p4) || !(p5)) return E; } while (0) |
#define | KAA_ENDPOINT_ID_LENGTH 20 |
Typedefs | |
typedef uint8_t | kaa_endpoint_id [KAA_ENDPOINT_ID_LENGTH] |
typedef const uint8_t * | kaa_endpoint_id_p |
Enumerations | |
enum | kaa_extension_id { KAA_EXTENSION_BOOTSTRAP = 0, KAA_EXTENSION_META_DATA = 1, KAA_EXTENSION_PROFILE = 2, KAA_EXTENSION_USER = 3, KAA_EXTENSION_LOGGING = 4, KAA_EXTENSION_CONFIGURATION = 5, KAA_EXTENSION_EVENT = 7, KAA_EXTENSION_NOTIFICATION = 6 } |
Kaa extensions. More... | |
Functions | |
static int | kaa_transport_protocol_id_equals (const kaa_transport_protocol_id_t *first, const kaa_transport_protocol_id_t *second) |
Common C EP SDK definitions and small utilities.
#define KAA_ENDPOINT_ID_LENGTH 20 |
#define KAA_RETURN_IF_ERR | ( | E | ) | do { if (E) return E; } while (0) |
#define KAA_RETURN_IF_NIL | ( | p, | |
E | |||
) | do { if (!(p)) return E; } while (0) |
#define KAA_RETURN_IF_NIL2 | ( | p1, | |
p2, | |||
E | |||
) | do { if (!(p1) || !(p2)) return E; } while (0) |
#define KAA_RETURN_IF_NIL3 | ( | p1, | |
p2, | |||
p3, | |||
E | |||
) | do { if (!(p1) || !(p2) || !(p3)) return E; } while (0) |
#define KAA_RETURN_IF_NIL4 | ( | p1, | |
p2, | |||
p3, | |||
p4, | |||
E | |||
) | do { if (!(p1) || !(p2) || !(p3) || !(p4)) return E; } while (0) |
#define KAA_RETURN_IF_NIL5 | ( | p1, | |
p2, | |||
p3, | |||
p4, | |||
p5, | |||
E | |||
) | do { if (!(p1) || !(p2) || !(p3) || !(p4) || !(p5)) return E; } while (0) |
typedef uint8_t kaa_endpoint_id[KAA_ENDPOINT_ID_LENGTH] |
typedef const uint8_t* kaa_endpoint_id_p |
enum kaa_extension_id |
|
inlinestatic |