PebbleOS v4.47.0-505-g4bbc630fa
Loading...
Searching...
No Matches
pbl_bt_ancs_client_cb Struct Reference

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.
 

Detailed Description

What a client reports; any may be null.

Field Documentation

◆ action_performed

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.

Parameters
status0 if the device performed it, or why not.
uidThe notification.

◆ app_attrs

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.

Parameters
statusAs for notif_attrs.
attrsAs for notif_attrs.
num_attrsNumber of attributes asked for.

◆ discovered

void(* pbl_bt_ancs_client_cb::discovered) (struct pbl_bt_ancs_client *client, int status)

The search for the service ended.

Parameters
status0 if the device has it, -ENOENT if not, or what failed.

◆ notif_attrs

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.

Parameters
status0, -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.
uidThe notification.
attrsIf status is 0, the attributes in the order they were asked for, null for those the response lacked; valid during the call.
num_attrsNumber of attributes asked for.

◆ notification

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.

Parameters
notifThe notification, valid during the call.

◆ subscribed

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.

Parameters
sourceThe source.
enableAs asked for.
status0, or why not.

The documentation for this struct was generated from the following file: