client-c  0.6.3
ext_user_callback.h File Reference

External interface for receiving user attachment status used by Kaa User subsystem. Should be implemented to receive user attachment/detachment notifications. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaa_attachment_status_listeners_t
 Interface for the user attachment status receiver. More...
 

Typedefs

typedef 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. More...
 
typedef kaa_error_t(* on_detached_fn )(void *context, const char *endpoint_access_token)
 Indicates that current endpoint was detached from a user. More...
 
typedef kaa_error_t(* on_attach_status_changed_fn )(void *context, bool is_attached)
 Notifies about attach status changes. More...
 

Detailed Description

External interface for receiving user attachment status used by Kaa User subsystem. Should be implemented to receive user attachment/detachment notifications.

Definition in file ext_user_callback.h.

Typedef Documentation

typedef kaa_error_t(* on_attach_status_changed_fn)(void *context, bool is_attached)

Notifies about attach status changes.

Parameters
[in]contextCallback's context.
[in]is_attachedTrue - if a current endpoint was attached to user, false - otherwise.
Returns
Error code

Definition at line 63 of file ext_user_callback.h.

typedef 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.

Parameters
[in]contextCallback's context.
[in]user_external_idThe ID of the user who has attached a current endpoint.
[in]endpoint_access_tokenThe access token of the endpoint which has attached a current endpoint.
Returns
Error code

Definition at line 41 of file ext_user_callback.h.

typedef kaa_error_t(* on_detached_fn)(void *context, const char *endpoint_access_token)

Indicates that current endpoint was detached from a user.

Parameters
[in]contextCallback's context.
[in]endpoint_access_tokenThe access token of the endpoint which has detached a current endpoint.
Returns
Error code

Definition at line 52 of file ext_user_callback.h.