avdtp_initiator.c (19af95b4393364faa7eabd8f926dd2bc9c318fcb) | avdtp_initiator.c (2bb3471f99e3b46b9fc9cc77b48863838e15ce57) |
---|---|
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 --- 141 unchanged lines hidden (view full) --- 150 log_error("AVDTP_SI_RECONFIGURE: stream endpoint is null"); 151 break; 152 } 153 sep.configured_service_categories = avdtp_unpack_service_capabilities(connection, &sep.configuration, connection->signaling_packet.command+4, connection->signaling_packet.size-4); 154 // TODO check if configuration is supported 155 156 if (!is_avdtp_remote_seid_registered(stream_endpoint)){ 157 stream_endpoint->remote_sep = sep; | 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 --- 141 unchanged lines hidden (view full) --- 150 log_error("AVDTP_SI_RECONFIGURE: stream endpoint is null"); 151 break; 152 } 153 sep.configured_service_categories = avdtp_unpack_service_capabilities(connection, &sep.configuration, connection->signaling_packet.command+4, connection->signaling_packet.size-4); 154 // TODO check if configuration is supported 155 156 if (!is_avdtp_remote_seid_registered(stream_endpoint)){ 157 stream_endpoint->remote_sep = sep; |
158 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_CONFIGURED; | |
159 log_info("INT: update seid %d, to %p", stream_endpoint->remote_sep.seid, stream_endpoint); 160 } | 158 log_info("INT: update seid %d, to %p", stream_endpoint->remote_sep.seid, stream_endpoint); 159 } |
160 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_OPENED; |
|
161 break; 162 163 case AVDTP_SI_SET_CONFIGURATION:{ 164 avdtp_configuration_timer_stop(connection); 165 if (!stream_endpoint){ 166 log_error("AVDTP_SI_SET_CONFIGURATION: stream endpoint is null"); 167 break; 168 } --- 272 unchanged lines hidden --- | 161 break; 162 163 case AVDTP_SI_SET_CONFIGURATION:{ 164 avdtp_configuration_timer_stop(connection); 165 if (!stream_endpoint){ 166 log_error("AVDTP_SI_SET_CONFIGURATION: stream endpoint is null"); 167 break; 168 } --- 272 unchanged lines hidden --- |