pub unsafe extern "C-unwind" fn SCNetworkServiceCopy(
prefs: &SCPreferences,
service_id: &CFString,
) -> Option<CFRetained<SCNetworkService>>Available on crate features
SCNetworkConfiguration and SCPreferences only.Expand description
Returns the network service with the specified identifier.
Parameter prefs: The “preferences” session.
Parameter serviceID: The unique identifier for the service.
Returns: A reference to the SCNetworkService from the associated preferences; NULL if the serviceID does not exist in the preferences or if an error was encountered. You must release the returned value.