Function SCNetworkInterfaceSetMediaOptions

Source
pub unsafe extern "C-unwind" fn SCNetworkInterfaceSetMediaOptions(
    interface: &SCNetworkInterface,
    subtype: Option<&CFString>,
    options: Option<&CFArray>,
) -> bool
Available on crate feature SCNetworkConfiguration only.
Expand description

For the specified network interface, sets the requested media subtype and options.

Parameter interface: The desired network interface.

Parameter subtype: The desired media subtype (e.g. “autoselect”, “100baseTX”, …). If NULL, no specific media subtype will be requested.

Parameter options: The desired media options (e.g. “half-duplex”, “full-duplex”, …). If NULL, no specific media options will be requested.

Returns: TRUE if the configuration was updated; FALSE if an error was encountered.