Function SCDynamicStoreAddValue

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

Adds the key-value pair to the dynamic store if no such key already exists.

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.