pub unsafe extern "C-unwind" fn LSCanURLAcceptURL(
in_item_url: &CFURL,
in_target_url: &CFURL,
in_role_mask: LSRolesMask,
in_flags: LSAcceptanceFlags,
out_accepts_item: NonNull<u8>,
) -> i32Available on crate features
LSConstants and LSInfo only.Expand description
Determine whether an item can accept another item.
Returns in outAcceptsItem whether inTargetURL can accept inItemURL as in a drag and drop operation. If inRoleMask is other than kLSRolesAll then make sure inTargetRef claims to fulfill the requested role.
Parameter inItemURL: CFURLRef of the item about which acceptance is requested.
Parameter inTargetURL: CFURLRef of the potential target.
Parameter inRoleMask: The role(s) the target must claim in order to consider
acceptance.
Parameter inFlags: Use kLSAcceptDefault.
Parameter outAcceptsItem: Filled in with result. Must not be NULL.
ยงSafety
out_accepts_item must be a valid pointer.