Function SCNetworkServiceCreate

Source
pub unsafe extern "C-unwind" fn SCNetworkServiceCreate(
    prefs: &SCPreferences,
    interface: &SCNetworkInterface,
) -> Option<CFRetained<SCNetworkService>>
Available on crate features SCNetworkConfiguration and SCPreferences only.
Expand description

Create a new network service for the specified interface in the configuration.

Parameter prefs: The “preferences” session.

Returns: A reference to the new SCNetworkService. You must release the returned value.