objc2_core_services/generated/Metadata/
MDSchema.rs1use core::ptr::NonNull;
4use objc2_core_foundation::*;
5
6use crate::*;
7
8#[inline]
20pub unsafe extern "C-unwind" fn MDSchemaCopyAttributesForContentType(
21 content_type_uti: Option<&CFString>,
22) -> Option<CFRetained<CFDictionary>> {
23 extern "C-unwind" {
24 fn MDSchemaCopyAttributesForContentType(
25 content_type_uti: Option<&CFString>,
26 ) -> Option<NonNull<CFDictionary>>;
27 }
28 let ret = unsafe { MDSchemaCopyAttributesForContentType(content_type_uti) };
29 ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
30}
31
32#[inline]
42pub unsafe extern "C-unwind" fn MDSchemaCopyMetaAttributesForAttribute(
43 name: Option<&CFString>,
44) -> Option<CFRetained<CFDictionary>> {
45 extern "C-unwind" {
46 fn MDSchemaCopyMetaAttributesForAttribute(
47 name: Option<&CFString>,
48 ) -> Option<NonNull<CFDictionary>>;
49 }
50 let ret = unsafe { MDSchemaCopyMetaAttributesForAttribute(name) };
51 ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
52}
53
54#[inline]
58pub unsafe extern "C-unwind" fn MDSchemaCopyAllAttributes() -> Option<CFRetained<CFArray>> {
59 extern "C-unwind" {
60 fn MDSchemaCopyAllAttributes() -> Option<NonNull<CFArray>>;
61 }
62 let ret = unsafe { MDSchemaCopyAllAttributes() };
63 ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
64}
65
66#[inline]
77pub unsafe extern "C-unwind" fn MDSchemaCopyDisplayNameForAttribute(
78 name: Option<&CFString>,
79) -> Option<CFRetained<CFString>> {
80 extern "C-unwind" {
81 fn MDSchemaCopyDisplayNameForAttribute(
82 name: Option<&CFString>,
83 ) -> Option<NonNull<CFString>>;
84 }
85 let ret = unsafe { MDSchemaCopyDisplayNameForAttribute(name) };
86 ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
87}
88
89#[inline]
100pub unsafe extern "C-unwind" fn MDSchemaCopyDisplayDescriptionForAttribute(
101 name: Option<&CFString>,
102) -> Option<CFRetained<CFString>> {
103 extern "C-unwind" {
104 fn MDSchemaCopyDisplayDescriptionForAttribute(
105 name: Option<&CFString>,
106 ) -> Option<NonNull<CFString>>;
107 }
108 let ret = unsafe { MDSchemaCopyDisplayDescriptionForAttribute(name) };
109 ret.map(|ret| unsafe { CFRetained::from_raw(ret) })
110}
111
112extern "C" {
113 pub static kMDAttributeDisplayValues: Option<&'static CFString>;
115}
116
117extern "C" {
118 pub static kMDAttributeAllValues: Option<&'static CFString>;
120}
121
122extern "C" {
123 pub static kMDAttributeReadOnlyValues: Option<&'static CFString>;
125}
126
127extern "C" {
128 pub static kMDExporterAvaliable: Option<&'static CFString>;
130}
131
132extern "C" {
133 pub static kMDAttributeName: Option<&'static CFString>;
135}
136
137extern "C" {
138 pub static kMDAttributeType: Option<&'static CFString>;
140}
141
142extern "C" {
143 pub static kMDAttributeMultiValued: Option<&'static CFString>;
145}