Function SCNetworkInterfaceCopyMediaOptions

Source
pub unsafe extern "C-unwind" fn SCNetworkInterfaceCopyMediaOptions(
    interface: &SCNetworkInterface,
    current: *mut *const CFDictionary,
    active: *mut *const CFDictionary,
    available: *mut *const CFArray,
    filter: bool,
) -> bool
Available on crate feature SCNetworkConfiguration only.
Expand description

For the specified network interface, returns information about the currently requested media options, the active media options, and the media options which are available.

Parameter interface: The desired network interface.

Parameter current: A pointer to memory that will be filled with a CFDictionaryRef representing the currently requested media options (subtype, options). If NULL, the current options will not be returned.

Parameter active: A pointer to memory that will be filled with a CFDictionaryRef representing the active media options (subtype, options). If NULL, the active options will not be returned.

Parameter available: A pointer to memory that will be filled with a CFArrayRef representing the possible media options (subtype, options). If NULL, the available options will not be returned.

Parameter filter: A boolean indicating whether the available options should be filtered to exclude those options which would not normally be requested by a user/admin (e.g. hw-loopback).

Returns: TRUE if requested information has been returned.