a2dp_source.h (fe5a6c4e963207a75641439241c8337880fdfb14) a2dp_source.h (a95794cee1b77dd0c805e8606c008222803b81c5)
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

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

241 * @param remote_seid ID of a remote stream endpoint.
242 * @param media_codec_information
243 * @param media_codec_information_len
244 * @return status
245 */
246uint8_t a2dp_source_set_config_other(uint16_t a2dp_cid, uint8_t local_seid, uint8_t remote_seid, const uint8_t * media_codec_information, uint8_t media_codec_information_len);
247
248/**
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

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

241 * @param remote_seid ID of a remote stream endpoint.
242 * @param media_codec_information
243 * @param media_codec_information_len
244 * @return status
245 */
246uint8_t a2dp_source_set_config_other(uint16_t a2dp_cid, uint8_t local_seid, uint8_t remote_seid, const uint8_t * media_codec_information, uint8_t media_codec_information_len);
247
248/**
249 * @brief Register media configuration validator. Can reject insuitable configuration or report stream endpoint as currently busy
250 * @note validator has to return AVDTP error codes like: AVDTP_ERROR_CODE_SEP_IN_USE or AVDTP_ERROR_CODE_UNSUPPORTED_CONFIGURATION
251 * the callback receives the media configuration in the same format as the existing A2dP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
252 * and similar
253 * @param callback
254 */
255void a2dp_source_register_media_config_validator(uint8_t (*callback)(const avdtp_stream_endpoint_t * stream_endpoint, const uint8_t * event, uint16_t size));
256
257/**
249 * @brief De-Init A2DP Source device.
250 */
251void a2dp_source_deinit(void);
252
253/* API_END */
254
255#if defined __cplusplus
256}
257#endif
258
259#endif // A2DP_SOURCE_H
258 * @brief De-Init A2DP Source device.
259 */
260void a2dp_source_deinit(void);
261
262/* API_END */
263
264#if defined __cplusplus
265}
266#endif
267
268#endif // A2DP_SOURCE_H