pub unsafe extern "C-unwind" fn SCDynamicStoreCreateRunLoopSource(
allocator: Option<&CFAllocator>,
store: &SCDynamicStore,
order: CFIndex,
) -> Option<CFRetained<CFRunLoopSource>>SCDynamicStore only.Expand description
Creates a CFRunLoopSource object that can be added to the application’s run loop. All dynamic store notifications are delivered using this run loop source.
Parameter allocator: The CFAllocator that should be used to allocate
memory for this run loop source.
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 store: A reference to the dynamic store session.
Parameter order: On platforms which support it, for source versions
which support it, this parameter determines the order in
which the sources which are ready to be processed are
handled. A lower order number causes processing before
higher order number sources. It is inadvisable to depend
on the order number for any architectural or design aspect
of code. In the absence of any reason to do otherwise,
zero should be used.
Returns: A reference to the new CFRunLoopSource. You must release the returned value.