|
PebbleOS v4.47.0-372-gac5760587
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <pbl/bluetooth/sm_types.h>#include <pbl/bluetooth/types.h>Data Structures | |
| struct | pbl_bt_bond_info |
| A bonded peer. More... | |
| struct | pbl_bt_bond_keys |
| The keys of a bond, to copy it to or from other storage. More... | |
Macros | |
| #define | PBL_BT_BOND_FLAG_SECURE_CONNECTIONS 0x01U |
| Bond flag: paired with Secure Connections. | |
| #define | PBL_BT_BOND_FLAG_AUTHENTICATED 0x02U |
| Bond flag: the pairing was authenticated (MITM protected). | |
Typedefs | |
| typedef void(* | pbl_bt_bond_cb_t) (const struct pbl_bt_bond_info *info, void *user_data) |
| Callback for pbl_bt_foreach_bond(). | |
Functions | |
| void | pbl_bt_foreach_bond (pbl_bt_bond_cb_t func, void *user_data) |
| Iterate over the bonds. | |
| size_t | pbl_bt_bond_count (void) |
| Count the bonds. | |
| int | pbl_bt_bond_get (const struct pbl_bt_device_internal *addr, struct pbl_bt_bond_info *info) |
| Get a bond. | |
| int | pbl_bt_bond_get_keys (const struct pbl_bt_device_internal *addr, struct pbl_bt_bond_keys *keys) |
| Get the keys of a bond. | |
| int | pbl_bt_bond_set_keys (const struct pbl_bt_bond_keys *keys) |
| Add a bond from its keys, or replace the keys of the one with the same peer. | |
| int | pbl_bt_unpair (const struct pbl_bt_device_internal *addr) |
| Delete a bond, with its Client Characteristic Configuration Descriptor states. | |
| void | pbl_bt_cb_bond_added (const struct pbl_bt_bond_info *info) |
| Called after bonding with a new peer. | |
| void | pbl_bt_cb_bond_changed (const struct pbl_bt_bond_info *info) |
| Called after the keys of a bond changed, for example when its peer paired again. | |
| void | pbl_bt_cb_bond_deleted (const struct pbl_bt_device_internal *addr) |
| Called after a bond was deleted. | |