Function wayland_scanner::generate_c_interfaces_streams[][src]

pub fn generate_c_interfaces_streams<P1: Read, P2: Write>(
    protocol: P1,
    target: &mut P2
)

Generate the interfaces for a protocol from/to IO streams

Like generate_c_interfaces, but takes IO Streams directly rather than filenames

Args:

  • protocol: an object Read-able containing the XML protocol file
  • target: a Write-able object to which the generated code will be outputed to