fn hfp_hf_service_definition() -> bredr::ServiceDefinition {
    let supported_features = HandsFreeFeaturesSdpAttribute::empty().bits();

    bredr::ServiceDefinition {
        service_class_uuids: Some(vec![
            Uuid::new16(bredr::ServiceClassProfileIdentifier::Handsfree as u16).into(),
            Uuid::new16(bredr::ServiceClassProfileIdentifier::GenericAudio as u16).into(),
        ]),
        protocol_descriptor_list: Some(vec![
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::L2Cap,
                params: vec![],
            },
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::Rfcomm,
                params: vec![],
            },
        ]),
        profile_descriptors: Some(vec![bredr::ProfileDescriptor {
            profile_id: bredr::ServiceClassProfileIdentifier::Handsfree,
            major_version: 1,
            minor_version: 8,
        }]),
        additional_attributes: Some(vec![bredr::Attribute {
            id: ATTR_ID_HFP_SUPPORTED_FEATURES,
            element: bredr::DataElement::Uint16(supported_features),
        }]),
        ..bredr::ServiceDefinition::new_empty()
    }
}
/// Make the SDP definition for an HFP Hands Free service.
Make the SDP definition for an HFP Hands Free service.
Make the SDP definition for an HFP Hands Free service .
fn hfp_hf_service_definition() -> bredr::ServiceDefinition {
    let supported_features = HandsFreeFeaturesSdpAttribute::empty().bits();
    bredr::ServiceDefinition {
        service_class_uuids: Some(vec![
            Uuid::new16(bredr::ServiceClassProfileIdentifier::Handsfree as u16).into(),
            Uuid::new16(bredr::ServiceClassProfileIdentifier::GenericAudio as u16).into(),
        ]),
        protocol_descriptor_list: Some(vec![
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::L2Cap,
                params: vec![],
            },
            bredr::ProtocolDescriptor {
                protocol: bredr::ProtocolIdentifier::Rfcomm,
                params: vec![],
            },
        ]),
        profile_descriptors: Some(vec![bredr::ProfileDescriptor {
            profile_id: bredr::ServiceClassProfileIdentifier::Handsfree,
            major_version: 1,
            minor_version: 8,
        }]),
        additional_attributes: Some(vec![bredr::Attribute {
            id: ATTR_ID_HFP_SUPPORTED_FEATURES,
            element: bredr::DataElement::Uint16(supported_features),
        }]),
        ..bredr::ServiceDefinition::new_empty()
    }
}
fn hfp_hf_service_definition ( ) -> bredr :: ServiceDefinition { let supported_features = HandsFreeFeaturesSdpAttribute :: empty ( ) . bits ( ) ; bredr :: ServiceDefinition { service_class_uuids : Some ( vec ! [ Uuid new16 ( bredr ServiceClassProfileIdentifier Handsfree as u16 ) into ( ) Uuid new16 ( bredr ServiceClassProfileIdentifier GenericAudio as u16 ) into ( ) ] ) , protocol_descriptor_list : Some ( vec ! [ bredr ProtocolDescriptor { protocol bredr ProtocolIdentifier L2Cap params vec [ ] } bredr ProtocolDescriptor { protocol bredr ProtocolIdentifier Rfcomm params vec [ ] } ] ) , profile_descriptors : Some ( vec ! [ bredr ProfileDescriptor { profile_id bredr ServiceClassProfileIdentifier Handsfree major_version 1 minor_version 8 } ] ) , additional_attributes : Some ( vec ! [ bredr Attribute { id ATTR_ID_HFP_SUPPORTED_FEATURES element bredr DataElement Uint16 ( supported_features ) } ] ) , .. bredr :: ServiceDefinition :: new_empty ( ) } }
Make the SDP definition for an HFP Hands Free service.
Make the SDP definition for an HFP Hands Free service .