Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated IrDA variant and private _kSCNetworkInterfaceTypeBridge reference #42

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions system-configuration-sys/src/network_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ extern "C" {

pub static kSCNetworkInterfaceTypeBond: CFStringRef;

pub static kSCNetworkInterfaceTypeBridge: CFStringRef;

pub static kSCNetworkInterfaceTypeEthernet: CFStringRef;

pub static kSCNetworkInterfaceTypeFireWire: CFStringRef;
Expand All @@ -136,8 +134,6 @@ extern "C" {

pub static kSCNetworkInterfaceTypeIPSec: CFStringRef;

pub static kSCNetworkInterfaceTypeIrDA: CFStringRef;

pub static kSCNetworkInterfaceTypeL2TP: CFStringRef;

pub static kSCNetworkInterfaceTypeModem: CFStringRef;
Expand Down
12 changes: 4 additions & 8 deletions system-configuration/src/network_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ pub enum SCNetworkInterfaceType {
SixToFour,
/// Bluetooth interface.
Bluetooth,
/// Bridge interface.
Bridge,
/// Ethernet bond interface.
Bond,
/// Ethernet interface.
Expand All @@ -115,8 +113,8 @@ pub enum SCNetworkInterfaceType {
IEEE80211,
/// IPSec interface.
IPSec,
/// IrDA interface.
IrDA,
// IrDA interface.
//IrDA,
/// L2TP interface.
L2TP,
/// Modem interface.
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down