client-c  0.7.4
ext_notification_receiver.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2015 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 #ifndef KAA_NOTIFICATION_RECEIVER
17 #define KAA_NOTIFICATION_RECEIVER
18 
19 #include "../gen/kaa_notification_definitions.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef enum {
29 
38 typedef void (*on_notification_callback)(void *context, uint64_t *topic_id, kaa_notification_t *notification);
39 
40 typedef struct {
42  void *context;
44 
45 typedef struct {
46  uint64_t id;
48  uint16_t name_length;
49  char *name;
50 } kaa_topic_t;
51 
59 typedef void (*on_topic_list_callback)(void *context, kaa_list_t *topics);
60 
61 typedef struct {
63  void *context;
65 
66 
67 #ifdef __cplusplus
68 } /* extern "C" */
69 #endif
70 #endif
71 
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