client-c  0.8.1
ext_user_callback.h
Go to the documentation of this file.
1 
23 #ifndef EXT_USER_CALLBACK_H_
24 #define EXT_USER_CALLBACK_H_
25 
26 #include "../kaa_common.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
33 
34 typedef enum {
41  OTHER = 6
43 
44 
45 
55 typedef kaa_error_t (*on_attached_fn)(void *context, const char *user_external_id, const char *endpoint_access_token);
56 
57 
66 typedef kaa_error_t (*on_detached_fn)(void *context, const char *endpoint_access_token);
67 
68 
77 typedef kaa_error_t (*on_attach_success_fn)(void *context);
78 
88 typedef kaa_error_t (*on_attach_failed_fn)(void *context, user_verifier_error_code_t error_code, const char *reason);
89 
90 
91 
95 typedef struct {
96  void *context;
102 
103 
112 typedef kaa_error_t (*on_endpoint_attached_fn)(void *context, const kaa_endpoint_id_p endpoint_key_hash);
113 
114 
122 typedef kaa_error_t (*on_endpoint_detached_fn)(void *context);
123 
124 
132 typedef kaa_error_t (*on_endpoint_failed_fn)(void *context);
133 
134 
138 typedef struct {
139  void *context;
145 
146 
147 #ifdef __cplusplus
148 } /* extern "C" */
149 #endif
150 
151 #endif /* EXT_USER_CALLBACK_H_ */
kaa_error_t(* on_endpoint_failed_fn)(void *context)
Notifies about attach attempt was failed.
Interface for the endpoint attachment status receiver.
on_endpoint_attached_fn on_attached
kaa_error_t(* on_endpoint_detached_fn)(void *context)
Notifies about detach attempt of endpoint was sucssed.
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.
on_endpoint_detached_fn on_detached
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.
const uint8_t * kaa_endpoint_id_p
Definition: kaa_common.h:95
kaa_error_t(* on_endpoint_attached_fn)(void *context, const kaa_endpoint_id_p endpoint_key_hash)
Notifies about attach attempt of endpoint was sucssed.
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.
on_endpoint_failed_fn on_detach_failed
on_endpoint_failed_fn on_attach_failed