Function SCDynamicStoreAddTemporaryValue

Source
pub unsafe extern "C-unwind" fn SCDynamicStoreAddTemporaryValue(
    store: &SCDynamicStore,
    key: &CFString,
    value: &CFPropertyList,
) -> bool
Available on crate feature SCDynamicStore only.
Expand description

Temporarily adds the key-value pair to the dynamic store if no such key already exists. Unless the key is updated by another session, the key-value pair will be removed automatically when the session is closed.

Parameter store: The dynamic store session.

Parameter key: The key of the value to add to the dynamic store.

Parameter value: The value to add to the dynamic store.

Returns: Returns TRUE if the key was added; FALSE if the key was already present in the dynamic store or if an error was encountered.