Function wayland_scanner::generate_code_streams
[−]
[src]
pub fn generate_code_streams<P1: Read, P2: Write>(
protocol: P1,
target: &mut P2,
side: Side
)
Generate the code for a protocol from/to IO streams
Like generate_code
, but takes IO Streams directly rather than filenames
Args:
protocol
: an objectRead
-able containing the XML protocol filetarget
: aWrite
-able object to which the generated code will be outputed toside
: the side (client or server) to generate code for.