Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ext_notification_receiver.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
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 
uint16_t name_length
Definition: ext_notification_receiver.h:49
uint64_t id
Definition: ext_notification_receiver.h:47
Definition: ext_notification_receiver.h:27
struct kaa_list_t kaa_list_t
Definition: kaa_list.h:30
char * name
Definition: ext_notification_receiver.h:50
void(* on_topic_list_callback)(void *context, kaa_list_t *topics)
Pointer to the function that should be called when notification received.
Definition: ext_notification_receiver.h:60
Definition: ext_notification_receiver.h:62
kaa_topic_subscription_type_t subscription_type
Definition: ext_notification_receiver.h:48
Definition: ext_notification_receiver.h:28
Definition: ext_notification_receiver.h:41
on_notification_callback callback
Definition: ext_notification_receiver.h:42
Definition: ext_notification_receiver.h:46
void * context
Definition: ext_notification_receiver.h:43
void * context
Definition: ext_notification_receiver.h:64
on_topic_list_callback callback
Definition: ext_notification_receiver.h:63
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.
Definition: ext_notification_receiver.h:39
kaa_topic_subscription_type_t
Definition: ext_notification_receiver.h:26