Commit 3e4544c4 authored by Jeremy Soller's avatar Jeremy Soller

Grant to allow passing data to scheme handler

parent a737a712
......@@ -84,6 +84,9 @@ fn main() {
scheme.read(&mut packet).expect("pcid: failed to read events from pci scheme");
println!("{:?}", packet);
if packet.a == 5 {
println!("{}", unsafe { ::std::str::from_utf8_unchecked(::std::slice::from_raw_parts(packet.b as *const u8, packet.c)) });
}
packet.a = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment