Function SCDynamicStoreCopyLocalHostName

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

Gets the current local host name.

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.

Returns: Returns the current local host name; NULL if the name has not been set or if an error was encountered. You must release the returned value.