@@ -1492,95 +1492,6 @@ struct bt_audio_unicast_server_cb {
1492
1492
int (* release )(struct bt_audio_stream * stream );
1493
1493
};
1494
1494
1495
- /** @brief Callback structure for the Public Audio Capabilities Service (PACS)
1496
- *
1497
- * This is used for the Unicast Server
1498
- * (@kconfig{CONFIG_BT_AUDIO_UNICAST_SERVER}) and Broadcast Sink
1499
- * (@kconfig{CONFIG_BT_AUDIO_BROADCAST_SINK}) roles.
1500
- */
1501
- struct bt_audio_pacs_cb {
1502
- /** @brief Get available audio contexts callback
1503
- *
1504
- * Get available audio contexts callback is called whenever a remote client
1505
- * requests to read the value of Published Audio Capabilities (PAC) Available
1506
- * Audio Contexts, or if the value needs to be notified.
1507
- *
1508
- * @param[in] conn The connection that requests the available audio
1509
- * contexts. Will be NULL if requested for sending
1510
- * a notification, as a result of calling
1511
- * bt_pacs_available_contexts_changed().
1512
- * @param[in] dir Direction of the endpoint.
1513
- * @param[out] context Pointer to the contexts that needs to be set.
1514
- *
1515
- * @return 0 in case of success or negative value in case of error.
1516
- */
1517
- int (* get_available_contexts )(struct bt_conn * conn , enum bt_audio_dir dir ,
1518
- enum bt_audio_context * context );
1519
-
1520
- /** @brief Publish Capability callback
1521
- *
1522
- * Publish Capability callback is called whenever a remote client
1523
- * requests to read the Published Audio Capabilities (PAC) records.
1524
- * The callback will be called iteratively until it returns an error,
1525
- * increasing the @p index each time. Once an error value (non-zero)
1526
- * is returned, the previously returned @p codec values (if any) will
1527
- * be sent to the client that requested the value.
1528
- *
1529
- * @param conn The connection that requests the capabilities.
1530
- * Will be NULL if the capabilities is requested for
1531
- * sending a notification, as a result of calling
1532
- * bt_audio_capability_register() or
1533
- * bt_audio_capability_unregister().
1534
- * @param type Type of the endpoint.
1535
- * @param index Index of the codec object requested. Multiple objects
1536
- * may be returned, and this value keep tracks of how
1537
- * many have previously been returned.
1538
- * @param codec Codec object that shall be populated if returning
1539
- * success (0). Ignored if returning non-zero.
1540
- *
1541
- * @return 0 in case of success or negative value in case of error.
1542
- */
1543
- int (* publish_capability )(struct bt_conn * conn , uint8_t type ,
1544
- uint8_t index , struct bt_codec * const codec );
1545
-
1546
- #if defined(CONFIG_BT_PAC_SNK_LOC ) || defined(CONFIG_BT_PAC_SRC_LOC )
1547
- /** @brief Publish location callback
1548
- *
1549
- * Publish location callback is called whenever a remote client
1550
- * requests to read the Published Audio Capabilities (PAC) location,
1551
- * or if the location needs to be notified.
1552
- *
1553
- * @param[in] conn The connection that requests the location.
1554
- * Will be NULL if the location is requested
1555
- * for sending a notification, as a result of
1556
- * calling bt_audio_pacs_location_changed().
1557
- * @param[in] dir Direction of the endpoint.
1558
- * @param[out] location Pointer to the location that needs to be set.
1559
- *
1560
- * @return 0 in case of success or negative value in case of error.
1561
- */
1562
- int (* publish_location )(struct bt_conn * conn ,
1563
- enum bt_audio_dir dir ,
1564
- enum bt_audio_location * location );
1565
-
1566
- #if defined(CONFIG_BT_PAC_SNK_LOC_WRITEABLE ) || defined(CONFIG_BT_PAC_SRC_LOC_WRITEABLE )
1567
- /** @brief Write location callback
1568
- *
1569
- * Write location callback is called whenever a remote client
1570
- * requests to write the Published Audio Capabilities (PAC) location.
1571
- *
1572
- * @param conn The connection that requests the write.
1573
- * @param dir Direction of the endpoint.
1574
- * @param location The location being written.
1575
- *
1576
- * @return 0 in case of success or negative value in case of error.
1577
- */
1578
- int (* write_location )(struct bt_conn * conn , enum bt_audio_dir dir ,
1579
- enum bt_audio_location location );
1580
- #endif /* CONFIG_BT_PAC_SNK_LOC_WRITEABLE || CONFIG_BT_PAC_SRC_LOC_WRITEABLE */
1581
- #endif /* CONFIG_BT_PAC_SNK_LOC || CONFIG_BT_PAC_SRC_LOC */
1582
- };
1583
-
1584
1495
/** Broadcast Audio Sink callback structure */
1585
1496
struct bt_audio_broadcast_sink_cb {
1586
1497
/** @brief Scan receive callback
@@ -1794,40 +1705,6 @@ void bt_audio_stream_cb_register(struct bt_audio_stream *stream,
1794
1705
* @{
1795
1706
*/
1796
1707
1797
- /** @brief Register Published Audio Capabilities Service callbacks.
1798
- *
1799
- * Only one callback structure can be registered, and attempting to
1800
- * registering more than one will result in an error.
1801
- *
1802
- * This can only be done for the Unicast Server
1803
- * (@kconfig{CONFIG_BT_AUDIO_UNICAST_SERVER}) and Broadcast Sink
1804
- * (@kconfig{CONFIG_BT_AUDIO_BROADCAST_SINK}) roles.
1805
- *
1806
- * Calling bt_audio_capability_register() will implicitly register the
1807
- * callbacks.
1808
- *
1809
- * @param cb Unicast server callback structure.
1810
- *
1811
- * @return 0 in case of success or negative value in case of error.
1812
- */
1813
- int bt_audio_pacs_register_cb (const struct bt_audio_pacs_cb * cb );
1814
-
1815
- /** @brief Notify that the location has changed
1816
- *
1817
- * @param dir Direction of the location changed.
1818
- *
1819
- * @return 0 in case of success or negative value in case of error.
1820
- */
1821
- int bt_audio_pacs_location_changed (enum bt_audio_dir dir );
1822
-
1823
- /** @brief Notify available audio contexts changed
1824
- *
1825
- * Notify connected clients that the available audio contexts has changed
1826
- *
1827
- * @return 0 in case of success or negative value in case of error.
1828
- */
1829
- int bt_pacs_available_contexts_changed (void );
1830
-
1831
1708
/** @brief Register unicast server callbacks.
1832
1709
*
1833
1710
* Only one callback structure can be registered, and attempting to
0 commit comments