mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
avdtp source: add avdtp_max_media_payload_size to API
This commit is contained in:
parent
33f3f68c3b
commit
4cd630d959
@ -223,7 +223,6 @@ uint8_t avdtp_source_stop_stream(uint16_t avdtp_cid, uint8_t local_seid);
|
||||
*/
|
||||
uint8_t avdtp_source_suspend(uint16_t avdtp_cid, uint8_t local_seid);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Create stream endpoint
|
||||
* @param sep_type AVDTP_SOURCE or AVDTP_SINK, see avdtp.h
|
||||
@ -232,7 +231,6 @@ uint8_t avdtp_source_suspend(uint16_t avdtp_cid, uint8_t local_seid);
|
||||
*/
|
||||
avdtp_stream_endpoint_t * avdtp_source_create_stream_endpoint(avdtp_sep_type_t sep_type, avdtp_media_type_t media_type);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Send media payload.
|
||||
* @param avdtp_cid AVDTP channel identifyer.
|
||||
@ -245,7 +243,6 @@ avdtp_stream_endpoint_t * avdtp_source_create_stream_endpoint(avdtp_sep_type_t s
|
||||
*/
|
||||
int avdtp_source_stream_send_media_payload(uint16_t avdtp_cid, uint8_t local_seid, uint8_t * storage, int num_bytes_to_copy, uint8_t num_frames, uint8_t marker);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Request to send a media packet. Packet can be then sent on reception of AVDTP_SUBEVENT_STREAMING_CAN_SEND_MEDIA_PACKET_NOW event.
|
||||
* @param avdtp_cid AVDTP channel identifyer.
|
||||
@ -253,6 +250,13 @@ int avdtp_source_stream_send_media_payload(uint16_t avdtp_cid, uint8_t local_sei
|
||||
*/
|
||||
void avdtp_source_stream_endpoint_request_can_send_now(uint16_t avddp_cid, uint8_t local_seid);
|
||||
|
||||
/**
|
||||
* @brief Return maximal media payload size, does not include media header.
|
||||
* @param avdtp_cid AVDTP channel identifyer.
|
||||
* @param local_seid ID of a local stream endpoint.
|
||||
*/
|
||||
int avdtp_max_media_payload_size(uint16_t avdtp_cid, uint8_t local_seid);
|
||||
|
||||
/* API_END */
|
||||
|
||||
#if defined __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user