avdtp_util.c (9413b167eca30861711396cfa611dbc66aa27249) | avdtp_util.c (34b22aac0913b061ca6c0da686fd034f9e188df1) |
---|---|
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 --- 503 unchanged lines hidden (view full) --- 512 little_endian_store_16(event, pos, avdtp_cid); 513 pos += 2; 514 event[pos++] = seid; 515 little_endian_store_16(event, pos, sequence_number); 516 pos += 2; 517 (*callback)(HCI_EVENT_PACKET, 0, event, sizeof(event)); 518} 519 | 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 --- 503 unchanged lines hidden (view full) --- 512 little_endian_store_16(event, pos, avdtp_cid); 513 pos += 2; 514 event[pos++] = seid; 515 little_endian_store_16(event, pos, sequence_number); 516 pos += 2; 517 (*callback)(HCI_EVENT_PACKET, 0, event, sizeof(event)); 518} 519 |
520void avdtp_signaling_emit_connection_released(btstack_packet_handler_t callback, uint16_t avdtp_cid){ 521 if (!callback) return; 522 uint8_t event[5]; 523 int pos = 0; 524 event[pos++] = HCI_EVENT_AVDTP_META; 525 event[pos++] = sizeof(event) - 2; 526 event[pos++] = AVDTP_SUBEVENT_SIGNALING_CONNECTION_RELEASED; 527 little_endian_store_16(event, pos, avdtp_cid); 528 pos += 2; 529 (*callback)(HCI_EVENT_PACKET, 0, event, sizeof(event)); 530} 531 532void avdtp_streaming_emit_connection_released(btstack_packet_handler_t callback, uint16_t avdtp_cid, uint8_t local_seid){ 533 if (!callback) return; 534 uint8_t event[6]; 535 int pos = 0; 536 event[pos++] = HCI_EVENT_AVDTP_META; 537 event[pos++] = sizeof(event) - 2; 538 event[pos++] = AVDTP_SUBEVENT_STREAMING_CONNECTION_RELEASED; 539 little_endian_store_16(event, pos, avdtp_cid); 540 pos += 2; 541 event[pos++] = local_seid; 542 (*callback)(HCI_EVENT_PACKET, 0, event, sizeof(event)); 543} 544 |
|
520void avdtp_streaming_emit_connection_established(btstack_packet_handler_t callback, uint16_t avdtp_cid, uint8_t local_seid, uint8_t remote_seid, uint8_t status){ 521 if (!callback) return; 522 uint8_t event[8]; 523 int pos = 0; 524 event[pos++] = HCI_EVENT_AVDTP_META; 525 event[pos++] = sizeof(event) - 2; 526 event[pos++] = AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED; 527 little_endian_store_16(event, pos, avdtp_cid); --- 288 unchanged lines hidden --- | 545void avdtp_streaming_emit_connection_established(btstack_packet_handler_t callback, uint16_t avdtp_cid, uint8_t local_seid, uint8_t remote_seid, uint8_t status){ 546 if (!callback) return; 547 uint8_t event[8]; 548 int pos = 0; 549 event[pos++] = HCI_EVENT_AVDTP_META; 550 event[pos++] = sizeof(event) - 2; 551 event[pos++] = AVDTP_SUBEVENT_STREAMING_CONNECTION_ESTABLISHED; 552 little_endian_store_16(event, pos, avdtp_cid); --- 288 unchanged lines hidden --- |