#6 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.
Example
extern crate ioctlify;
// Taken from <linux/videodev2.h>
const VIDIOC_RESERVED: u32 = io!;
const VIDIOC_STREAMON: u32 = iow!;
const VIDIOC_LOG_STATUS: u32 = io!;
assert_eq!;
assert_eq!;
assert_eq!;
Installation
In Cargo.toml
:
[]
= "0.1.0"