Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
kaa_common.h File Reference

Common C EP SDK definitions and small utilities. More...

#include <stdint.h>
#include "kaa_error.h"

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)
 

Detailed Description

Common C EP SDK definitions and small utilities.

Macro Definition Documentation

#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,
 
)    do { if (!(p)) return E; } while (0)
#define KAA_RETURN_IF_NIL2 (   p1,
  p2,
 
)    do { if (!(p1) || !(p2)) return E; } while (0)
#define KAA_RETURN_IF_NIL3 (   p1,
  p2,
  p3,
 
)    do { if (!(p1) || !(p2) || !(p3)) return E; } while (0)
#define KAA_RETURN_IF_NIL4 (   p1,
  p2,
  p3,
  p4,
 
)    do { if (!(p1) || !(p2) || !(p3) || !(p4)) return E; } while (0)
#define KAA_RETURN_IF_NIL5 (   p1,
  p2,
  p3,
  p4,
  p5,
 
)    do { if (!(p1) || !(p2) || !(p3) || !(p4) || !(p5)) return E; } while (0)

Typedef Documentation

typedef uint8_t kaa_endpoint_id[KAA_ENDPOINT_ID_LENGTH]
typedef const uint8_t* kaa_endpoint_id_p

Enumeration Type Documentation

Kaa extensions.

Enumerator
KAA_EXTENSION_BOOTSTRAP 
KAA_EXTENSION_META_DATA 
KAA_EXTENSION_PROFILE 
KAA_EXTENSION_USER 
KAA_EXTENSION_LOGGING 
KAA_EXTENSION_CONFIGURATION 
KAA_EXTENSION_EVENT 
KAA_EXTENSION_NOTIFICATION 

Function Documentation

static int kaa_transport_protocol_id_equals ( const kaa_transport_protocol_id_t first,
const kaa_transport_protocol_id_t second 
)
inlinestatic