/// Make the SDP definition for the A2DP sink service.
Make the SDP definition for the A2DP sink service.
Make the SDP definition for the A2DP sink service .
fn make_profile_service_definition() -> ServiceDefinition {
    ServiceDefinition {
        service_class_uuids: Some(vec![Uuid::new16(0x110B).into()]), // Audio Sink UUID
        protocol_descriptor_list: Some(vec![
            ProtocolDescriptor {
                protocol: ProtocolIdentifier::L2Cap,
                params: vec![DataElement::Uint16(PSM_AVDTP)],
            },
            ProtocolDescriptor {
                protocol: ProtocolIdentifier::Avdtp,
                params: vec![DataElement::Uint16(0x0103)], // Indicate v1.3
            },
        ]),
        profile_descriptors: Some(vec![ProfileDescriptor {
            profile_id: ServiceClassProfileIdentifier::AdvancedAudioDistribution,
            major_version: 1,
            minor_version: 2,
        }]),
        ..ServiceDefinition::new_empty()
    }
}
fn make_profile_service_definition ( ) -> ServiceDefinition { ServiceDefinition { service_class_uuids : Some ( vec ! [ Uuid new16 ( 0x110B ) into ( ) ] ) , // Audio Sink UUID protocol_descriptor_list : Some ( vec ! [ ProtocolDescriptor { protocol ProtocolIdentifier L2Cap params vec [ DataElement Uint16 ( PSM_AVDTP ) ] } ProtocolDescriptor { protocol ProtocolIdentifier Avdtp params vec [ DataElement Uint16 ( 0x0103 ) ] // Indicate v1.3 } ] ) , profile_descriptors : Some ( vec ! [ ProfileDescriptor { profile_id ServiceClassProfileIdentifier AdvancedAudioDistribution major_version 1 minor_version 2 } ] ) , .. ServiceDefinition :: new_empty ( ) } }
Make the SDP definition for the A2DP sink service.
Make the SDP definition for the A2DP sink service .