#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>
Clear the contents of a server based on conn pointer.
- Note
- This function can be used in a disconnect callback. Will not clear the address or streams. Must only be called when there are no active connections.
-
srv_store_lock() must be called before accessing this function.
- Parameters
-
| [in] | conn | Connection to the server to be cleared. |
- Return values
-
| 0 | Success, negative error code on failure. |
| Other | negative. Errors from underlying functions. |