pub unsafe extern "C-unwind" fn AuthorizationRightGet(
right_name: NonNull<c_char>,
right_definition: *mut *const CFDictionary,
) -> i32Available on crate feature
AuthorizationDB only.Expand description
Retrieves a right definition as a dictionary. There are no restrictions to keep anyone from retrieving these definitions.
Parameter rightName: (input) the rightname (ASCII). Wildcard rightname definitions are okay.
Parameter rightDefinition: (output/optional) the dictionary with all keys defining the right. See documented keys. Passing in NULL will just check if there is a definition. The caller is responsible for releasing the returned dictionary.
Returns: errAuthorizationSuccess 0 No error.
errAuthorizationDenied -60005 No definition found.
ยงSafety
right_namemust be a valid pointer.right_definitionmust be a valid pointer or null.