ping, iq: Implement ping::serialise_ping and link to Iq.

This commit is contained in:
Maxime “pep” Buquet 2017-04-23 21:17:26 +01:00
commit c462d230f1
2 changed files with 9 additions and 0 deletions

View file

@ -18,6 +18,10 @@ pub fn parse_ping(root: &Element) -> Result<Ping, Error> {
Ok(Ping { })
}
pub fn serialise_ping() -> Element {
Element::builder("ping").ns(ns::PING).build()
}
#[cfg(test)]
mod tests {
use minidom::Element;