diff --git a/system-configuration-sys/src/network_configuration.rs b/system-configuration-sys/src/network_configuration.rs index 686bf87..2680d8f 100644 --- a/system-configuration-sys/src/network_configuration.rs +++ b/system-configuration-sys/src/network_configuration.rs @@ -126,8 +126,6 @@ extern "C" { pub static kSCNetworkInterfaceTypeBond: CFStringRef; - pub static kSCNetworkInterfaceTypeBridge: CFStringRef; - pub static kSCNetworkInterfaceTypeEthernet: CFStringRef; pub static kSCNetworkInterfaceTypeFireWire: CFStringRef; @@ -136,8 +134,6 @@ extern "C" { pub static kSCNetworkInterfaceTypeIPSec: CFStringRef; - pub static kSCNetworkInterfaceTypeIrDA: CFStringRef; - pub static kSCNetworkInterfaceTypeL2TP: CFStringRef; pub static kSCNetworkInterfaceTypeModem: CFStringRef; diff --git a/system-configuration/src/network_configuration.rs b/system-configuration/src/network_configuration.rs index 7b503bb..abfb887 100644 --- a/system-configuration/src/network_configuration.rs +++ b/system-configuration/src/network_configuration.rs @@ -103,8 +103,6 @@ pub enum SCNetworkInterfaceType { SixToFour, /// Bluetooth interface. Bluetooth, - /// Bridge interface. - Bridge, /// Ethernet bond interface. Bond, /// Ethernet interface. @@ -115,8 +113,8 @@ pub enum SCNetworkInterfaceType { IEEE80211, /// IPSec interface. IPSec, - /// IrDA interface. - IrDA, + // IrDA interface. + //IrDA, /// L2TP interface. L2TP, /// Modem interface. @@ -152,8 +150,6 @@ impl SCNetworkInterfaceType { Some(SCNetworkInterfaceType::SixToFour) } else if id_is_equal_to(kSCNetworkInterfaceTypeBluetooth) { Some(SCNetworkInterfaceType::Bluetooth) - } else if id_is_equal_to(kSCNetworkInterfaceTypeBridge) { - Some(SCNetworkInterfaceType::Bridge) } else if id_is_equal_to(kSCNetworkInterfaceTypeBond) { Some(SCNetworkInterfaceType::Bond) } else if id_is_equal_to(kSCNetworkInterfaceTypeEthernet) { @@ -164,8 +160,8 @@ impl SCNetworkInterfaceType { Some(SCNetworkInterfaceType::IEEE80211) } else if id_is_equal_to(kSCNetworkInterfaceTypeIPSec) { Some(SCNetworkInterfaceType::IPSec) - } else if id_is_equal_to(kSCNetworkInterfaceTypeIrDA) { - Some(SCNetworkInterfaceType::IrDA) + //} else if id_is_equal_to(kSCNetworkInterfaceTypeIrDA) { + //Some(SCNetworkInterfaceType::IrDA) } else if id_is_equal_to(kSCNetworkInterfaceTypeL2TP) { Some(SCNetworkInterfaceType::L2TP) } else if id_is_equal_to(kSCNetworkInterfaceTypeModem) {