avdtp_source.h (fe5a6c4e963207a75641439241c8337880fdfb14) avdtp_source.h (6a737fb6dffb35739dfc90427773a58b014bc75d)
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

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

282/**
283 * @brief Return maximal media payload size, does not include media header.
284 * @param avdtp_cid AVDTP channel identifyer.
285 * @param local_seid ID of a local stream endpoint.
286 */
287int avdtp_max_media_payload_size(uint16_t avdtp_cid, uint8_t local_seid);
288
289/**
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

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

282/**
283 * @brief Return maximal media payload size, does not include media header.
284 * @param avdtp_cid AVDTP channel identifyer.
285 * @param local_seid ID of a local stream endpoint.
286 */
287int avdtp_max_media_payload_size(uint16_t avdtp_cid, uint8_t local_seid);
288
289/**
290 * @brief Register media configuration validator. Can reject insuitable configuration or report stream endpoint as currently busy
291 * @note validator has to return AVDTP error codes like: AVDTP_ERROR_CODE_SEP_IN_USE or AVDTP_ERROR_CODE_UNSUPPORTED_CONFIGURATION
292 * the callback receives the media configuration in the same format as the existing AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CONFIGURATION
293 * and similar
294 * @param callback
295 */
296void avdtp_source_register_media_config_validator(uint8_t (*callback)(const avdtp_stream_endpoint_t * stream_endpoint, const uint8_t * event, uint16_t size));
297
298/**
290 * @brief De-Init AVDTP Source.
291 */
292void avdtp_source_deinit(void);
293
294/* API_END */
295
296#if defined __cplusplus
297}
298#endif
299
300#endif // AVDTP_SOURCE_H
299 * @brief De-Init AVDTP Source.
300 */
301void avdtp_source_deinit(void);
302
303/* API_END */
304
305#if defined __cplusplus
306}
307#endif
308
309#endif // AVDTP_SOURCE_H