Contents

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) -> Bool

Parameters

  • 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