Function wayland_scanner::generate_interfaces [] [src]

pub fn generate_interfaces<P1: AsRef<Path>, P2: AsRef<Path>>(
    protocol: P1,
    target: P2
)

Generate the interfaces for a protocol

See this crate toplevel documentation for details.

Args:

  • protocol: a path to the XML file describing the protocol, absolute or relative to the build script using this function.
  • target: the path of the file to store this interfaces in.