1//! Parser for wayland protocol xml files 2 3mod parser; 4mod types; 5 6pub use parser::Error; 7pub use types::*; 8 9pub fn parse_protocol(text: &str) -> Result<Protocol<'_>, Error> { 10 parser::Parser::new(text).get_grotocol() 11}