Grant to allow passing data to scheme handler
This commit is contained in:
parent
2b915953c9
commit
941fc0b494
10 changed files with 205 additions and 19 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue