a2dp_sink.h (a95794cee1b77dd0c805e8606c008222803b81c5) a2dp_sink.h (48ce193c1bb43973676c530932628af0332bfb28)
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 103 unchanged lines hidden (view full) ---

112 * @param size
113 */
114void a2dp_sink_register_media_handler(void (*callback)(uint8_t local_seid, uint8_t *packet, uint16_t size));
115
116/**
117 * @brief Establish stream.
118 * @param remote
119 * @param local_seid ID of a local stream endpoint.
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 103 unchanged lines hidden (view full) ---

112 * @param size
113 */
114void a2dp_sink_register_media_handler(void (*callback)(uint8_t local_seid, uint8_t *packet, uint16_t size));
115
116/**
117 * @brief Establish stream.
118 * @param remote
119 * @param local_seid ID of a local stream endpoint.
120 * @param out_a2dp_cid Assigned A2DP channel identifyer used for furhter A2DP commands.
120 * @param out_a2dp_cid Assigned A2DP channel identifier used for furhter A2DP commands.
121 */
122uint8_t a2dp_sink_establish_stream(bd_addr_t remote, uint8_t local_seid, uint16_t * out_a2dp_cid);
123
121 */
122uint8_t a2dp_sink_establish_stream(bd_addr_t remote, uint8_t local_seid, uint16_t * out_a2dp_cid);
123
124#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION
124/**
125/**
126 * @brief Accept starting the stream on A2DP_SUBEVENT_START_STREAM_REQUESTED event.
127 * @param a2dp_cid A2DP channel identifier.
128 * @param local_seid ID of a local stream endpoint.
129 */
130uint8_t a2dp_sink_start_stream_accept(uint16_t a2dp_cid, uint8_t local_seid);
131
132/**
133 * @brief Reject starting the stream on A2DP_SUBEVENT_START_STREAM_REQUESTED event.
134 * @param a2dp_cid A2DP channel identifier.
135 * @param local_seid ID of a local stream endpoint.
136 */
137uint8_t a2dp_sink_start_stream_reject(uint16_t a2dp_cid, uint8_t local_seid);
138#endif
139
140/**
125 * @brief Release stream and disconnect from remote.
141 * @brief Release stream and disconnect from remote.
126 * @param a2dp_cid A2DP channel identifyer.
142 * @param a2dp_cid A2DP channel identifier.
127 */
128void a2dp_sink_disconnect(uint16_t a2dp_cid);
129
130/**
131 * @brief Register media configuration validator. Can reject insuitable configuration or report stream endpoint as currently busy
132 * @note validator has to return AVDTP error codes like: AVDTP_ERROR_CODE_SEP_IN_USE or AVDTP_ERROR_CODE_UNSUPPORTED_CONFIGURATION
133 * the callback receives the media configuration in the same format as the existing A2dP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
134 * and similar

--- 17 unchanged lines hidden ---
143 */
144void a2dp_sink_disconnect(uint16_t a2dp_cid);
145
146/**
147 * @brief Register media configuration validator. Can reject insuitable configuration or report stream endpoint as currently busy
148 * @note validator has to return AVDTP error codes like: AVDTP_ERROR_CODE_SEP_IN_USE or AVDTP_ERROR_CODE_UNSUPPORTED_CONFIGURATION
149 * the callback receives the media configuration in the same format as the existing A2dP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
150 * and similar

--- 17 unchanged lines hidden ---