1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Part of ethercat-rs. Copyright 2018-2022 by the authors.
// This work is dual-licensed under Apache 2.0 and MIT terms.

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(clippy::useless_transmute)]

#[cfg(not(feature = "pregenerated-bindings"))]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

#[cfg(all(not(feature = "sncn"), feature = "pregenerated-bindings"))]
include!("bindings-v1.5-c022ddbcf254.rs");

#[cfg(all(feature = "sncn", feature = "pregenerated-bindings"))]
include!("bindings-v1.5.2-sncn-11.rs");

use ioctl_sys::{io, ioc, ioctl, ior, iorw, iow};

pub mod ioctl {
    use super::EC_IOCTL_TYPE as EC;
    use super::*;

    #[cfg(not(feature = "pregenerated-bindings"))]
    include!(concat!(env!("OUT_DIR"), "/ioctls.rs"));

    #[cfg(all(not(feature = "sncn"), feature = "pregenerated-bindings"))]
    include!("ioctls-v1.5-c022ddbcf254.rs");

    #[cfg(all(feature = "sncn", feature = "pregenerated-bindings"))]
    include!("ioctls-v1.5.2-sncn-11.rs");
}