|
PebbleOS v4.47.0-505-g4bbc630fa
|
What a client reports; any may be null. More...
#include <ancs.h>
Data Fields | |
| void(* | discovered )(struct pbl_bt_ancs_client *client, int status) |
| The search for the service ended. | |
| void(* | subscribed )(struct pbl_bt_ancs_client *client, enum pbl_bt_ancs_source source, bool enable, int status) |
| A pbl_bt_ancs_client_subscribe() was answered. | |
| void(* | notification )(struct pbl_bt_ancs_client *client, const struct pbl_bt_ancs_notif *notif) |
| The device added, modified or removed a notification. | |
| void(* | notif_attrs )(struct pbl_bt_ancs_client *client, int status, uint32_t uid, const struct pbl_bt_ancs_attr *const *attrs, uint8_t num_attrs) |
| A pbl_bt_ancs_client_get_notif_attrs() ended. | |
| void(* | app_attrs )(struct pbl_bt_ancs_client *client, int status, const struct pbl_bt_ancs_attr *const *attrs, uint8_t num_attrs) |
| A pbl_bt_ancs_client_get_app_attrs() ended. | |
| void(* | action_performed )(struct pbl_bt_ancs_client *client, int status, uint32_t uid) |
| A pbl_bt_ancs_client_perform_action() ended. | |
What a client reports; any may be null.
| void(* pbl_bt_ancs_client_cb::action_performed) (struct pbl_bt_ancs_client *client, int status, uint32_t uid) |
A pbl_bt_ancs_client_perform_action() ended.
| status | 0 if the device performed it, or why not. |
| uid | The notification. |
| void(* pbl_bt_ancs_client_cb::app_attrs) (struct pbl_bt_ancs_client *client, int status, const struct pbl_bt_ancs_attr *const *attrs, uint8_t num_attrs) |
A pbl_bt_ancs_client_get_app_attrs() ended.
| status | As for notif_attrs. |
| attrs | As for notif_attrs. |
| num_attrs | Number of attributes asked for. |
| void(* pbl_bt_ancs_client_cb::discovered) (struct pbl_bt_ancs_client *client, int status) |
The search for the service ended.
| status | 0 if the device has it, -ENOENT if not, or what failed. |
| void(* pbl_bt_ancs_client_cb::notif_attrs) (struct pbl_bt_ancs_client *client, int status, uint32_t uid, const struct pbl_bt_ancs_attr *const *attrs, uint8_t num_attrs) |
A pbl_bt_ancs_client_get_notif_attrs() ended.
| status | 0, -EBADMSG if the response was not to the request or had a value longer than accepted, -ENOBUFS if it did not fit the buffer of the client, or why not otherwise. |
| uid | The notification. |
| attrs | If status is 0, the attributes in the order they were asked for, null for those the response lacked; valid during the call. |
| num_attrs | Number of attributes asked for. |
| void(* pbl_bt_ancs_client_cb::notification) (struct pbl_bt_ancs_client *client, const struct pbl_bt_ancs_notif *notif) |
The device added, modified or removed a notification.
| notif | The notification, valid during the call. |
| void(* pbl_bt_ancs_client_cb::subscribed) (struct pbl_bt_ancs_client *client, enum pbl_bt_ancs_source source, bool enable, int status) |
A pbl_bt_ancs_client_subscribe() was answered.
| source | The source. |
| enable | As asked for. |
| status | 0, or why not. |