use core::ptr::NonNull;
use objc2_core_foundation::*;
use crate::*;
#[inline]
pub unsafe extern "C-unwind" fn MDSchemaCopyAttributesForContentType(
content_type_uti: Option<&CFString>,
) -> Option<CFRetained<CFDictionary>> {
extern "C-unwind" {
fn MDSchemaCopyAttributesForContentType(
content_type_uti: Option<&CFString>,
) -> Option<NonNull<CFDictionary>>;
}
let ret = unsafe { MDSchemaCopyAttributesForContentType(content_type_uti) };
ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}
#[inline]
pub unsafe extern "C-unwind" fn MDSchemaCopyMetaAttributesForAttribute(
name: Option<&CFString>,
) -> Option<CFRetained<CFDictionary>> {
extern "C-unwind" {
fn MDSchemaCopyMetaAttributesForAttribute(
name: Option<&CFString>,
) -> Option<NonNull<CFDictionary>>;
}
let ret = unsafe { MDSchemaCopyMetaAttributesForAttribute(name) };
ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}
#[inline]
pub unsafe extern "C-unwind" fn MDSchemaCopyAllAttributes() -> Option<CFRetained<CFArray>> {
extern "C-unwind" {
fn MDSchemaCopyAllAttributes() -> Option<NonNull<CFArray>>;
}
let ret = unsafe { MDSchemaCopyAllAttributes() };
ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}
#[inline]
pub unsafe extern "C-unwind" fn MDSchemaCopyDisplayNameForAttribute(
name: Option<&CFString>,
) -> Option<CFRetained<CFString>> {
extern "C-unwind" {
fn MDSchemaCopyDisplayNameForAttribute(
name: Option<&CFString>,
) -> Option<NonNull<CFString>>;
}
let ret = unsafe { MDSchemaCopyDisplayNameForAttribute(name) };
ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}
#[inline]
pub unsafe extern "C-unwind" fn MDSchemaCopyDisplayDescriptionForAttribute(
name: Option<&CFString>,
) -> Option<CFRetained<CFString>> {
extern "C-unwind" {
fn MDSchemaCopyDisplayDescriptionForAttribute(
name: Option<&CFString>,
) -> Option<NonNull<CFString>>;
}
let ret = unsafe { MDSchemaCopyDisplayDescriptionForAttribute(name) };
ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
}
extern "C" {
pub static kMDAttributeDisplayValues: Option<&'static CFString>;
}
extern "C" {
pub static kMDAttributeAllValues: Option<&'static CFString>;
}
extern "C" {
pub static kMDAttributeReadOnlyValues: Option<&'static CFString>;
}
extern "C" {
pub static kMDExporterAvaliable: Option<&'static CFString>;
}
extern "C" {
pub static kMDAttributeName: Option<&'static CFString>;
}
extern "C" {
pub static kMDAttributeType: Option<&'static CFString>;
}
extern "C" {
pub static kMDAttributeMultiValued: Option<&'static CFString>;
}