Bluetooth: Add connect event structure to zsector

Add an optional version for connection events
to save some memory.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2021-06-09 23:52:33 -07:00 committed by Carles Cufí
commit 23a9594944
4 changed files with 88 additions and 5 deletions

View file

@ -932,6 +932,17 @@ struct bt_conn_cb {
*/
void bt_conn_cb_register(struct bt_conn_cb *cb);
/** @def BT_CONN_CB_DEFINE
*
* @brief Register a callback structure for connection events.
*
* @param _name Name of callback structure.
*/
#define BT_CONN_CB_DEFINE(_name) \
static const Z_STRUCT_SECTION_ITERABLE(bt_conn_cb, \
_CONCAT(bt_conn_cb, \
_name))
/** @brief Enable/disable bonding.
*
* Set/clear the Bonding flag in the Authentication Requirements of