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:
parent
bc7e86b9ec
commit
1027b0e4f0
2 changed files with 18 additions and 5 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue