|
PebbleOS v4.47.0-505-g4bbc630fa
|
What a client reports; any may be null. More...
#include <ams.h>
Data Fields | |
| void(* | discovered )(struct pbl_bt_ams_client *client, int status) |
| The search for the service ended. | |
| void(* | subscribed )(struct pbl_bt_ams_client *client, enum pbl_bt_ams_source source, bool enable, int status) |
| A pbl_bt_ams_client_subscribe() was answered. | |
| void(* | commands )(struct pbl_bt_ams_client *client, const uint8_t *commands, uint8_t num_commands) |
| The commands the media player takes changed. | |
| void(* | update )(struct pbl_bt_ams_client *client, const struct pbl_bt_ams_update *update) |
| The device told the value of an attribute that was registered for. | |
| void(* | command_sent )(struct pbl_bt_ams_client *client, int status) |
| A pbl_bt_ams_client_send_command() was answered. | |
| void(* | registered )(struct pbl_bt_ams_client *client, int status) |
| A pbl_bt_ams_client_register() was answered. | |
| void(* | attr_read )(struct pbl_bt_ams_client *client, int status, enum pbl_bt_ams_entity entity, uint8_t attr, const uint8_t *value, uint16_t len) |
| A pbl_bt_ams_client_read_attr() ended. | |
What a client reports; any may be null.
| void(* pbl_bt_ams_client_cb::attr_read) (struct pbl_bt_ams_client *client, int status, enum pbl_bt_ams_entity entity, uint8_t attr, const uint8_t *value, uint16_t len) |
A pbl_bt_ams_client_read_attr() ended.
| status | 0, PBL_BT_AMS_ERR_ABSENT_ATTRIBUTE if the attribute is empty, or why not otherwise. |
| entity | The entity. |
| attr | Its attribute. |
| value | If status is 0, the whole value: UTF-8, not terminated, valid during the call. |
| len | Its length. |
| void(* pbl_bt_ams_client_cb::command_sent) (struct pbl_bt_ams_client *client, int status) |
A pbl_bt_ams_client_send_command() was answered.
| status | 0 if the device took the command, or why not. |
| void(* pbl_bt_ams_client_cb::commands) (struct pbl_bt_ams_client *client, const uint8_t *commands, uint8_t num_commands) |
The commands the media player takes changed.
| commands | The commands it takes now, each an enum pbl_bt_ams_command; valid during the call. |
| num_commands | Their number. |
| void(* pbl_bt_ams_client_cb::discovered) (struct pbl_bt_ams_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_ams_client_cb::registered) (struct pbl_bt_ams_client *client, int status) |
A pbl_bt_ams_client_register() was answered.
| status | 0 if the device took the registration, or why not. |
| void(* pbl_bt_ams_client_cb::subscribed) (struct pbl_bt_ams_client *client, enum pbl_bt_ams_source source, bool enable, int status) |
A pbl_bt_ams_client_subscribe() was answered.
| source | The source. |
| enable | As asked for. |
| status | 0, or why not. |
| void(* pbl_bt_ams_client_cb::update) (struct pbl_bt_ams_client *client, const struct pbl_bt_ams_update *update) |
The device told the value of an attribute that was registered for.
| update | The attribute and its value, valid during the call. |