DHCPInfoGetOptionData

Function DHCPInfoGetOptionData 

Source
pub unsafe extern "C-unwind" fn DHCPInfoGetOptionData(
    info: &CFDictionary,
    code: u8,
) -> Option<CFRetained<CFData>>
Available on crate feature SCDynamicStoreCopyDHCPInfo only.
Expand description

Returns a non-NULL CFDataRef containing the DHCP option data, if present.

Parameter info: The non-NULL DHCP information dictionary returned by calling SCDynamicStoreCopyDHCPInfo.

Parameter code: The DHCP option code (see RFC 2132) to return data for.

Returns: Returns a non-NULL CFDataRef containing the option data; NULL if the requested option data is not present.

The return value must NOT be released.

ยงSafety

info generics must be of the correct type.