client-c  0.6.3
ext_user_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 
23 #ifndef EXT_USER_CALLBACK_H_
24 #define EXT_USER_CALLBACK_H_
25 
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 
41 typedef kaa_error_t (*on_attached_fn)(void *context, const char *user_external_id, const char *endpoint_access_token);
42 
43 
52 typedef kaa_error_t (*on_detached_fn)(void *context, const char *endpoint_access_token);
53 
54 
63 typedef kaa_error_t (*on_attach_status_changed_fn)(void *context, bool is_attached);
64 
65 
69 typedef struct {
70  void *context;
75 
76 
77 #ifdef __cplusplus
78 } /* extern "C" */
79 #endif
80 
81 #endif /* EXT_USER_CALLBACK_H_ */
kaa_error_t
Definition: kaa_error.h:31
kaa_error_t(* on_attach_status_changed_fn)(void *context, bool is_attached)
Notifies about attach status changes.
kaa_error_t(* on_attached_fn)(void *context, const char *user_external_id, const char *endpoint_access_token)
Notifies about the successful attachment of the current endpoint to some user.
kaa_error_t(* on_detached_fn)(void *context, const char *endpoint_access_token)
Indicates that current endpoint was detached from a user.
Interface for the user attachment status receiver.
on_attach_status_changed_fn on_response_callback