Type Alias SCDynamicStoreCallBack

Source
pub type SCDynamicStoreCallBack = Option<unsafe extern "C-unwind" fn(NonNull<SCDynamicStore>, NonNull<CFArray>, *mut c_void)>;
Available on crate feature SCDynamicStore only.
Expand description

Type of callback function used when notification of changes to the dynamic store is delivered.

Parameter store: The dynamic store session.

Parameter changedKeys: The list of changed keys.

The list includes any specific SCDynamicStore keys that changed (add, update, remove, notify) since the last call to SCDynamicStoreSetNotificationKeys or since the last notification callback. The list also includes any specific keys matching one of the pattern string(s) that changed.

An empty list indicates that the SCDynamicStore server restarted and that any assumptions based on prior content of the SCDynamicStore should be discarded.

Parameter info: A C pointer to a user-specified block of data.

See also Apple’s documentation

Aliased Type§

enum SCDynamicStoreCallBack {
    None,
    Some(unsafe extern "C-unwind" fn(_: NonNull<SCDynamicStore>, _: NonNull<CFArray>, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(_: NonNull<SCDynamicStore>, _: NonNull<CFArray>, _: *mut c_void))

Some value of type T.