Function safe_app::ffi::mutable_data::permissions::mdata_permissions_insert [] [src]

#[no_mangle]
pub unsafe extern "C" fn mdata_permissions_insert(
    app: *const App,
    permissions_h: MDataPermissionsHandle,
    user_h: SignPubKeyHandle,
    permission_set: *const FfiPermissionSet,
    user_data: *mut c_void,
    o_cb: extern "C" fn(_: *mut c_void, _: *const FfiResult)
)

Insert permission set for the given user to the permissions.

To insert permissions for "Anyone", pass USER_ANYONE as the user handle.

Callback parameters: user data, error code