Bluetooth: host: add support for unregister scanner callback

This is a pairing function with bt_le_scan_cb_register()
to used for remove the scanner callback from callback list.

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2021-01-11 14:45:54 +08:00 committed by Johan Hedberg
commit 1027b0e4f0
2 changed files with 18 additions and 5 deletions

View file

@ -1714,6 +1714,15 @@ int bt_le_scan_stop(void);
*/
void bt_le_scan_cb_register(struct bt_le_scan_cb *cb);
/**
* @brief Unregister scanner packet callbacks.
*
* Remove the callback structure from the list of scanner callbacks.
*
* @param cb Callback struct. Must point to memory that remains valid.
*/
void bt_le_scan_cb_unregister(struct bt_le_scan_cb *cb);
/**
* @brief Add device (LE) to whitelist.
*