#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>
Add a server to the storage based on conn.
- Note
- This function should not be used if the peer uses a resolvable address which has not yet been resolved, or any other changing address type.
-
srv_store_lock() must be called before accessing this function.
- Parameters
-
| [in] | conn | Pointer to the connection associated with the server to add, based on address. |
- Return values
-
| 0 | Success. |
| -EALREADY | The server already exists. |
| -ENOMEM | Out of memory. |
| Other | negative. Errors from underlying functions. |