client-c  0.7.0
ext_event_listeners_callback.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 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 
24 #ifndef EXT_EVENT_LISTENERS_CALLBACK_H_
25 #define EXT_EVENT_LISTENERS_CALLBACK_H_
26 
27 #include "../kaa_common.h"
28 #include "../kaa_error.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 
45 typedef kaa_error_t (*on_event_listeners_fn) (void *context, const kaa_endpoint_id listeners[], size_t listeners_count);
46 
47 
55 typedef kaa_error_t (*on_event_listeners_failed_fn) (void *context);
56 
57 
61 typedef struct
62 {
63  void *context;
67 
68 
69 #ifdef __cplusplus
70 } /* extern "C" */
71 #endif
72 
73 #endif /* EXT_EVENT_LISTENERS_CALLBACK_H_ */
uint8_t kaa_endpoint_id[KAA_ENDPOINT_ID_LENGTH]
Definition: kaa_common.h:94
kaa_error_t(* on_event_listeners_failed_fn)(void *context)
Callback for failed event listeners responses.
kaa_error_t
Definition: kaa_error.h:31
on_event_listeners_failed_fn on_event_listeners_failed
kaa_error_t(* on_event_listeners_fn)(void *context, const kaa_endpoint_id listeners[], size_t listeners_count)
Callback for successful event listeners responses.