ioctl-gen
Making those magic ioctl
numbers is really annoying without macros, so here are some macros. And if you were wondering, yes, they work in constants.
```rs
extern crate ioctlify;
// Taken from
asserteq!(ioctype!(VIDIOCRESERVED), b'V' as u32); asserteq!(VIDIOCSTREAMON, 1074026002); asserteq!(iocnr!(VIDIOCLOG_STATUS), 70); ```
In Cargo.toml
:
toml
[dependencies]
ioctl-gen = "0.1.0"