MDItemsCreateWithURLs

Function MDItemsCreateWithURLs 

Source
pub unsafe extern "C-unwind" fn MDItemsCreateWithURLs(
    allocator: Option<&CFAllocator>,
    urls: Option<&CFArray>,
) -> Option<CFRetained<CFArray>>
Available on crate feature MDItem only.
Expand description

Returns metadata items for the given urls.

Parameter allocator: The CFAllocator which should be used to allocate memory for the array. This parameter may be NULL in which case the current default CFAllocator is used.

Parameter urls: A CFArray of urls to the file for which to create the MDItem.

Returns: A CFArrayRef of MDItemRefs, or NULL on failure. Missing items will have kCFNull entries in the result array.

ยงSafety

  • allocator might not allow None.
  • urls generic must be of the correct type.
  • urls might not allow None.