client-c  0.7.0
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 
32 
33 typedef enum {
40  OTHER = 6
42 
43 
44 
54 typedef kaa_error_t (*on_attached_fn)(void *context, const char *user_external_id, const char *endpoint_access_token);
55 
56 
65 typedef kaa_error_t (*on_detached_fn)(void *context, const char *endpoint_access_token);
66 
67 
76 typedef kaa_error_t (*on_attach_success_fn)(void *context);
77 
87 typedef kaa_error_t (*on_attach_failed_fn)(void *context, user_verifier_error_code_t error_code, const char *reason);
88 
89 
90 
94 typedef struct {
95  void *context;
101 
102 
103 #ifdef __cplusplus
104 } /* extern "C" */
105 #endif
106 
107 #endif /* EXT_USER_CALLBACK_H_ */
on_attach_success_fn on_attach_success
kaa_error_t
Definition: kaa_error.h:31
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.
kaa_error_t(* on_attach_success_fn)(void *context)
Notifies about attach status changes.
user_verifier_error_code_t
Interface for the user attachment status receiver.
kaa_error_t(* on_attach_failed_fn)(void *context, user_verifier_error_code_t error_code, const char *reason)
Notifies about attach attempt was failed.