client-c  0.8.1
ext_notification_receiver.h
Go to the documentation of this file.
1 
17 #ifndef KAA_NOTIFICATION_RECEIVER
18 #define KAA_NOTIFICATION_RECEIVER
19 
20 #include "../gen/kaa_notification_definitions.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 typedef enum {
30 
39 typedef void (*on_notification_callback)(void *context, uint64_t *topic_id, kaa_notification_t *notification);
40 
41 typedef struct {
43  void *context;
45 
46 typedef struct {
47  uint64_t id;
49  uint16_t name_length;
50  char *name;
51 } kaa_topic_t;
52 
60 typedef void (*on_topic_list_callback)(void *context, kaa_list_t *topics);
61 
62 typedef struct {
64  void *context;
66 
67 
68 #ifdef __cplusplus
69 } /* extern "C" */
70 #endif
71 #endif
72 
struct kaa_list_t kaa_list_t
Definition: kaa_list.h:30
void(* on_topic_list_callback)(void *context, kaa_list_t *topics)
Pointer to the function that should be called when notification received.
kaa_topic_subscription_type_t subscription_type
on_notification_callback callback
on_topic_list_callback callback
void(* on_notification_callback)(void *context, uint64_t *topic_id, kaa_notification_t *notification)
Pointer to the function that should be called when notification received.
kaa_topic_subscription_type_t