client-c
0.7.0
|
Common C EP SDK definitions and small utilities. More...
#include "kaa_error.h"
Go to the source code of this file.
Classes | |
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) { if (E) return E; } |
#define | KAA_RETURN_IF_NIL(p, E) { if (!(p)) return E; } |
#define | KAA_RETURN_IF_NIL2(p1, p2, E) { if (!(p1) || !(p2)) return E; } |
#define | KAA_RETURN_IF_NIL3(p1, p2, p3, E) { if (!(p1) || !(p2) || !(p3)) return E; } |
#define | KAA_RETURN_IF_NIL4(p1, p2, p3, p4, E) { if (!(p1) || !(p2) || !(p3) || !(p4)) return E; } |
#define | KAA_RETURN_IF_NIL5(p1, p2, p3, p4, p5, E) { if (!(p1) || !(p2) || !(p3) || !(p4) || !(p5)) return E; } |
#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_service_t { KAA_SERVICE_BOOTSTRAP = 0, KAA_SERVICE_PROFILE = 1, KAA_SERVICE_USER = 2, KAA_SERVICE_EVENT = 3, KAA_SERVICE_LOGGING = 4, KAA_SERVICE_CONFIGURATION = 5 } |
Types of Kaa platform services. 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.
Definition in file kaa_common.h.
#define KAA_ENDPOINT_ID_LENGTH 20 |
Definition at line 93 of file kaa_common.h.
#define KAA_RETURN_IF_ERR | ( | E | ) | { if (E) return E; } |
Definition at line 35 of file kaa_common.h.
#define KAA_RETURN_IF_NIL | ( | p, | |
E | |||
) | { if (!(p)) return E; } |
Definition at line 38 of file kaa_common.h.
#define KAA_RETURN_IF_NIL2 | ( | p1, | |
p2, | |||
E | |||
) | { if (!(p1) || !(p2)) return E; } |
Definition at line 41 of file kaa_common.h.
#define KAA_RETURN_IF_NIL3 | ( | p1, | |
p2, | |||
p3, | |||
E | |||
) | { if (!(p1) || !(p2) || !(p3)) return E; } |
Definition at line 44 of file kaa_common.h.
#define KAA_RETURN_IF_NIL4 | ( | p1, | |
p2, | |||
p3, | |||
p4, | |||
E | |||
) | { if (!(p1) || !(p2) || !(p3) || !(p4)) return E; } |
Definition at line 47 of file kaa_common.h.
#define KAA_RETURN_IF_NIL5 | ( | p1, | |
p2, | |||
p3, | |||
p4, | |||
p5, | |||
E | |||
) | { if (!(p1) || !(p2) || !(p3) || !(p4) || !(p5)) return E; } |
Definition at line 50 of file kaa_common.h.
typedef uint8_t kaa_endpoint_id[KAA_ENDPOINT_ID_LENGTH] |
Definition at line 94 of file kaa_common.h.
typedef const uint8_t* kaa_endpoint_id_p |
Definition at line 95 of file kaa_common.h.
enum kaa_service_t |
Types of Kaa platform services.
Enumerator | |
---|---|
KAA_SERVICE_BOOTSTRAP | |
KAA_SERVICE_PROFILE | |
KAA_SERVICE_USER | |
KAA_SERVICE_EVENT | |
KAA_SERVICE_LOGGING | |
KAA_SERVICE_CONFIGURATION |
Definition at line 57 of file kaa_common.h.
|
inlinestatic |
Definition at line 74 of file kaa_common.h.