Function SCDynamicStoreKeyCreateHostNames

Source
pub unsafe extern "C-unwind" fn SCDynamicStoreKeyCreateHostNames(
    allocator: Option<&CFAllocator>,
) -> CFRetained<CFString>
Available on crate feature SCDynamicStoreKey only.
Expand description

Creates a key that can be used in conjunction with the SCDynamicStoreSetNotificationKeys function to receive notifications when the HostNames entity changes. The HostNames entity includes the local host name.

Parameter allocator: The CFAllocator that should be used to allocate memory for this key. This parameter may be NULL in which case the current default CFAllocator is used. If this reference is not a valid CFAllocator, the behavior is undefined.

Returns: Returns a notification string for the HostNames entity.