mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
avdtp: replace subevent is in existing event and emit it
This commit is contained in:
parent
0d176b654b
commit
b0d30d8aaf
@ -1572,3 +1572,10 @@ void avdtp_init(void){
|
||||
l2cap_register_service(&avdtp_packet_handler, BLUETOOTH_PSM_AVDTP, 0xffff, gap_get_security_level());
|
||||
}
|
||||
}
|
||||
|
||||
void a2dp_replace_subevent_id_and_emit_cmd(btstack_packet_handler_t a2dp_packet_handler, uint8_t * packet, uint16_t size, uint8_t subevent_id){
|
||||
UNUSED(size);
|
||||
packet[0] = HCI_EVENT_A2DP_META;
|
||||
packet[2] = subevent_id;
|
||||
(*a2dp_packet_handler)(HCI_EVENT_PACKET, 0, packet, size);
|
||||
}
|
||||
|
@ -625,6 +625,8 @@ void avdtp_signaling_emit_media_codec_other_configuration(avdtp_stream_endpoint_
|
||||
|
||||
uint8_t is_avdtp_remote_seid_registered(avdtp_stream_endpoint_t * stream_endpoint);
|
||||
|
||||
void a2dp_replace_subevent_id_and_emit_cmd(btstack_packet_handler_t a2dp_packet_handler, uint8_t * packet, uint16_t size, uint8_t subevent_id);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user