SCNetworkInterfaceCopyMediaOptions(_:_:_:_:_:)
Returns information media options for the specified network interface.
Declaration
func SCNetworkInterfaceCopyMediaOptions(_ interface: SCNetworkInterface, _ current: UnsafeMutablePointer<Unmanaged<CFDictionary>?>?, _ active: UnsafeMutablePointer<Unmanaged<CFDictionary>?>?, _ available: UnsafeMutablePointer<Unmanaged<CFArray>?>?, _ filter: Bool) -> BoolParameters
- interface:
The network interface.
- current:
On output, a dictionary representing the currently requested media options (subtype, options). If
NULL, the current options are not returned. - active:
On output, a dictionary representing the active media options (subtype, options). If
NULL, the active options are not returned. - available:
On output, an array representing the possible media options (subtype, options). If
NULL, the current options are not returned. - filter:
A Boolean value indicating whether the available options should be filtered to exclude those options which would not normally be requested by a user/admin (for example,
hw-loopback).
Return Value
TRUE if requested information has been returned.
See Also
Configuring Network Interfaces
SCNetworkInterfaceCopyAll()SCNetworkInterfaceCopyMTU(_:_:_:_:)SCNetworkInterfaceCopyMediaSubTypeOptions(_:_:)SCNetworkInterfaceCopyMediaSubTypes(_:)SCNetworkInterfaceCreateWithInterface(_:_:)SCNetworkInterfaceForceConfigurationRefresh(_:)SCNetworkInterfaceGetBSDName(_:)SCNetworkInterfaceGetConfiguration(_:)SCNetworkInterfaceGetExtendedConfiguration(_:_:)SCNetworkInterfaceGetHardwareAddressString(_:)SCNetworkInterfaceGetInterface(_:)SCNetworkInterfaceGetInterfaceType(_:)SCNetworkInterfaceGetLocalizedDisplayName(_:)SCNetworkInterfaceGetSupportedInterfaceTypes(_:)SCNetworkInterfaceGetSupportedProtocolTypes(_:)