client-c  0.9.0
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 
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