Function SCDynamicStoreCreate

Source
pub unsafe extern "C-unwind" fn SCDynamicStoreCreate(
    allocator: Option<&CFAllocator>,
    name: &CFString,
    callout: SCDynamicStoreCallBack,
    context: *mut SCDynamicStoreContext,
) -> Option<CFRetained<SCDynamicStore>>
Available on crate feature SCDynamicStore only.
Expand description

Creates a new session used to interact with the dynamic store maintained by the System Configuration server.

Parameter allocator: The CFAllocator that should be used to allocate memory for the local dynamic store object. 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.

Parameter name: A string that describes the name of the calling process or plug-in of the caller.

Parameter callout: The function to be called when a watched value in the dynamic store is changed. A NULL value can be specified if no callouts are desired.

Parameter context: The SCDynamicStoreContext associated with the callout.

Returns: Returns a reference to the new SCDynamicStore session. You must release the returned value.