Function SCDynamicStoreCopyDHCPInfo

Source
pub unsafe extern "C-unwind" fn SCDynamicStoreCopyDHCPInfo(
    store: Option<&SCDynamicStore>,
    service_id: Option<&CFString>,
) -> Option<CFRetained<CFDictionary>>
Available on crate features SCDynamicStore and SCDynamicStoreCopyDHCPInfo only.
Expand description

Copies the DHCP information for the requested serviceID, or the primary service if serviceID == NULL.

Parameter store: An SCDynamicStoreRef representing the dynamic store session that should be used for communication with the server. If NULL, a temporary session will be used.

Parameter serviceID: A CFStringRef containing the requested service. If NULL, returns information for the primary service.

Returns: Returns a dictionary containing DHCP information if successful; NULL otherwise. Use the DHCPInfoGetOption function to retrieve individual options from the returned dictionary.

A non-NULL return value must be released using CFRelease().