File tree Expand file tree Collapse file tree 7 files changed +20
-13
lines changed Expand file tree Collapse file tree 7 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ pub(crate) mod bcm;
44pub ( crate ) mod j1939;
55pub ( crate ) mod raw;
66
7- pub use bcm:: * ;
8- pub use j1939:: * ;
9- pub use raw:: * ;
10-
117use crate :: prelude:: * ;
128
139pub const CAN_EFF_FLAG : canid_t = 0x80000000 ;
Original file line number Diff line number Diff line change 1- //! `linux/can/bcm.h`
1+ //! Header: `linux/can/bcm.h`
22
33pub use crate :: linux:: can:: * ;
44
Original file line number Diff line number Diff line change 1- //! `linux/can/raw.h`
1+ //! Header: `linux/can/raw.h`
22
33pub use crate :: linux:: can:: * ;
44
Original file line number Diff line number Diff line change 1- //! Header: `uapi/ linux/keyctl.h`
1+ //! Header: `linux/keyctl.h`
22
3- // linux/keyctl.h
43pub const KEY_SPEC_THREAD_KEYRING : i32 = -1 ;
54pub const KEY_SPEC_PROCESS_KEYRING : i32 = -2 ;
65pub const KEY_SPEC_SESSION_KEYRING : i32 = -3 ;
Original file line number Diff line number Diff line change 1- //! The `linux` directory within `include/uapi` in the Linux source tree.
1+ //! Directory: `linux/`
2+ //!
3+ //! <https://github.com/torvalds/linux/tree/master/include/uapi/linux>
24
35pub ( crate ) mod can;
4- pub use can:: * ;
56pub ( crate ) mod keyctl;
6- pub use keyctl:: * ;
Original file line number Diff line number Diff line change 11//! This directory maps to `include/uapi` in the Linux source tree.
22
33pub ( crate ) mod linux;
4- pub use linux:: * ;
Original file line number Diff line number Diff line change 1414//!
1515//! All modules are only crate-public since we don't reexport this structure.
1616
17+ // Libraries available on each platform
1718cfg_if! {
1819 if #[cfg(target_os = "linux")] {
1920 mod linux_uapi;
20- pub use linux_uapi::*;
21+ pub(crate) use linux_uapi::*;
2122 } else if #[cfg(target_os = "android")] {
2223 mod bionic;
2324 pub use bionic::*;
2425 } else if #[cfg(target_vendor = "apple")] {
2526 mod apple;
2627 pub(crate) use apple::*;
28+ }
29+ }
30+
31+ // Headers we export
32+ cfg_if! {
33+ if #[cfg(target_os = "linux")] {
34+ pub use linux::can::bcm::*;
35+ pub use linux::can::j1939::*;
36+ pub use linux::can::raw::*;
37+ pub use linux::can::*;
38+ pub use linux::keyctl::*;
39+ } else if #[cfg(target_vendor = "apple")] {
2740 pub use signal::*;
2841 }
2942}
You can’t perform that action at this time.
0 commit comments