Zephyr Project API  3.2.0
A Scalable Open Source RTOS
Audio Server APIs

Functions

int bt_audio_pacs_register_cb (const struct bt_audio_pacs_cb *cb)
 Register Published Audio Capabilities Service callbacks. More...
 
int bt_audio_pacs_location_changed (enum bt_audio_dir dir)
 Notify that the location has changed. More...
 
int bt_pacs_available_contexts_changed (void)
 Notify available audio contexts changed. More...
 
int bt_audio_unicast_server_register_cb (const struct bt_audio_unicast_server_cb *cb)
 Register unicast server callbacks. More...
 
int bt_audio_unicast_server_unregister_cb (const struct bt_audio_unicast_server_cb *cb)
 Unregister unicast server callbacks. More...
 

Detailed Description

Function Documentation

◆ bt_audio_pacs_location_changed()

int bt_audio_pacs_location_changed ( enum bt_audio_dir  dir)

#include <include/zephyr/bluetooth/audio/audio.h>

Notify that the location has changed.

Parameters
dirDirection of the location changed.
Returns
0 in case of success or negative value in case of error.

◆ bt_audio_pacs_register_cb()

int bt_audio_pacs_register_cb ( const struct bt_audio_pacs_cb cb)

#include <include/zephyr/bluetooth/audio/audio.h>

Register Published Audio Capabilities Service callbacks.

Only one callback structure can be registered, and attempting to registering more than one will result in an error.

This can only be done for the Unicast Server ( CONFIG_BT_AUDIO_UNICAST_SERVER ) and Broadcast Sink ( CONFIG_BT_AUDIO_BROADCAST_SINK ) roles.

Calling bt_audio_capability_register() will implicitly register the callbacks.

Parameters
cbUnicast server callback structure.
Returns
0 in case of success or negative value in case of error.

◆ bt_audio_unicast_server_register_cb()

int bt_audio_unicast_server_register_cb ( const struct bt_audio_unicast_server_cb cb)

#include <include/zephyr/bluetooth/audio/audio.h>

Register unicast server callbacks.

Only one callback structure can be registered, and attempting to registering more than one will result in an error.

Parameters
cbUnicast server callback structure.
Returns
0 in case of success or negative value in case of error.

◆ bt_audio_unicast_server_unregister_cb()

int bt_audio_unicast_server_unregister_cb ( const struct bt_audio_unicast_server_cb cb)

#include <include/zephyr/bluetooth/audio/audio.h>

Unregister unicast server callbacks.

May only unregister a callback structure that has previously been registered by bt_audio_unicast_server_register_cb().

Parameters
cbUnicast server callback structure.
Returns
0 in case of success or negative value in case of error.

◆ bt_pacs_available_contexts_changed()

int bt_pacs_available_contexts_changed ( void  )

#include <include/zephyr/bluetooth/audio/audio.h>

Notify available audio contexts changed.

Notify connected clients that the available audio contexts has changed

Returns
0 in case of success or negative value in case of error.