avdtp.c (fc532b335d399813155cd98d01c2382ba5ed33b9) | avdtp.c (dbdb76a871f66859413f58c56dd81714c8ce2685) |
---|---|
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 --- 234 unchanged lines hidden (view full) --- 243 } 244 connection->state = AVDTP_SIGNALING_CONNECTION_IDLE; 245 connection->initiator_transaction_label = avdtp_get_next_transaction_label(); 246 connection->configuration_state = AVDTP_CONFIGURATION_STATE_IDLE; 247 connection->a2dp_source_config_process.discover_seps = false; 248 connection->avdtp_cid = cid; 249 (void)memcpy(connection->remote_addr, remote_addr, 6); 250 | 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 --- 234 unchanged lines hidden (view full) --- 243 } 244 connection->state = AVDTP_SIGNALING_CONNECTION_IDLE; 245 connection->initiator_transaction_label = avdtp_get_next_transaction_label(); 246 connection->configuration_state = AVDTP_CONFIGURATION_STATE_IDLE; 247 connection->a2dp_source_config_process.discover_seps = false; 248 connection->avdtp_cid = cid; 249 (void)memcpy(connection->remote_addr, remote_addr, 6); 250 |
251 btstack_linked_list_add(&avdtp_connections, (btstack_linked_item_t *) connection); | 251 btstack_linked_list_add_tail(&avdtp_connections, (btstack_linked_item_t *) connection); |
252 return connection; 253} 254 255static uint16_t avdtp_get_next_cid(void){ 256 if (avdtp_cid_counter == 0xffff) { 257 avdtp_cid_counter = 1; 258 } else { 259 avdtp_cid_counter++; --- 1421 unchanged lines hidden --- | 252 return connection; 253} 254 255static uint16_t avdtp_get_next_cid(void){ 256 if (avdtp_cid_counter == 0xffff) { 257 avdtp_cid_counter = 1; 258 } else { 259 avdtp_cid_counter++; --- 1421 unchanged lines hidden --- |