jingle_ice_udp: Add a constructor for Transport.

This commit is contained in:
Emmanuel Gil Peyrot 2019-10-12 17:13:02 +02:00
parent 7f8cdc5bf0
commit b91e5bdc4e

View file

@ -26,6 +26,18 @@ generate_element!(
] ]
); );
impl Transport {
/// Create a new ICE-UDP transport.
pub fn new() -> Transport {
Transport {
pwd: None,
ufrag: None,
candidates: Vec::new(),
fingerprint: None,
}
}
}
generate_attribute!( generate_attribute!(
/// A Candidate Type as defined in ICE-CORE. /// A Candidate Type as defined in ICE-CORE.
Type, "type", { Type, "type", {