pub unsafe extern "C-unwind" fn SCDynamicStoreCreateWithOptions(
allocator: Option<&CFAllocator>,
name: &CFString,
store_options: Option<&CFDictionary>,
callout: SCDynamicStoreCallBack,
context: *mut SCDynamicStoreContext,
) -> Option<CFRetained<SCDynamicStore>>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 storeOptions: A CFDictionary containing options for the
dynamic store session (such as whether all keys added or set
into the dynamic store should be per-session keys).
Currently available options include:
| key | value |
|---|---|
| kSCDynamicStoreUseSessionKeys | CFBooleanRef |
A NULL value can be specified if no options are desired.
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.