client-c
0.6.3
|
Endpoint-to-user association management for Kaa C SDK. More...
Go to the source code of this file.
Macros | |
#define | KAA_USER_MANAGER_T |
Kaa user manager structure. More... | |
Typedefs | |
typedef struct kaa_user_manager_t | kaa_user_manager_t |
Functions | |
kaa_error_t | kaa_user_manager_attach_to_user (kaa_user_manager_t *self, const char *user_external_id, const char *access_token) |
Attaches the endpoint to a user entity. More... | |
kaa_error_t | kaa_user_manager_set_attachment_listeners (kaa_user_manager_t *self, const kaa_attachment_status_listeners_t *listeners) |
Sets callback functions to receive notifications when the endpoint gets attached or detached to (from) user. More... | |
Endpoint-to-user association management for Kaa C SDK.
Manages endpoint's association with a user entity in Kaa.
Definition in file kaa_user.h.
#define KAA_USER_MANAGER_T |
Kaa user manager structure.
Definition at line 40 of file kaa_user.h.
typedef struct kaa_user_manager_t kaa_user_manager_t |
Definition at line 41 of file kaa_user.h.
kaa_error_t kaa_user_manager_attach_to_user | ( | kaa_user_manager_t * | self, |
const char * | user_external_id, | ||
const char * | access_token | ||
) |
Attaches the endpoint to a user entity.
Use this function to request attachment of the endpoint to a user entity using the specified external authentication credentials. Only endpoints associated with the same user entity can exchange events.
[in] | self | Valid pointer to the user manager instance. |
[in] | user_external_id | Null-terminated string representing external user ID. |
[in] | user_access_token | Null-terminated string representing external access token. |
kaa_error_t kaa_user_manager_set_attachment_listeners | ( | kaa_user_manager_t * | self, |
const kaa_attachment_status_listeners_t * | listeners | ||
) |
Sets callback functions to receive notifications when the endpoint gets attached or detached to (from) user.
[in] | self | Valid pointer to the user manager instance. |
[in] | listeners | A filled in kaa_attachment_status_listeners_t structure. |