nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ srv_store_foreach_server()

int srv_store_foreach_server ( srv_store_foreach_func_t func,
void * user_data )

#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>

Iterate through all stored servers and call the given function for each.

Note
srv_store_lock() must be called before accessing this function.
Parameters
[in]funcFunction to call for each server.
[in]user_dataUser data to pass to the function.
Return values
0Success.
-EINVALFunction pointer is NULL.
-ECANCELEDThe iteration was stopped by the callback function.