diff options
author | Paul Osborne <osbpau@gmail.com> | 2015-09-01 01:32:27 -0500 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-09-15 10:38:18 -0700 |
commit | 779be31c58fb8b97e58276a45a51a4fbe3ded3b4 (patch) | |
tree | 53d901ccb6b2bbbb39b23a3c6aab7818e04d5ec8 /src/sys/ioctl/mod.rs | |
parent | 2adda057025b7edfc5df13cc2c7927ff36a69523 (diff) | |
download | nix-779be31c58fb8b97e58276a45a51a4fbe3ded3b4.zip |
ioctl: make ioctl functions public
Consumers of the API may control visibility by means of a module. The
following is a useful pattern that may be used by implementors (here for
a couple of i2cdev ioctl definitions):
mod ioctl {
ioctl!(bad set_i2c_slave_address with super::I2C_SLAVE);
ioctl!(bad i2c_smbus with super::I2C_SMBUS);
}
This resolves #184.
Diffstat (limited to 'src/sys/ioctl/mod.rs')
0 files changed, 0 insertions, 0 deletions