objc2_core_services/generated/Metadata/
MDImporter.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6use objc2_core_foundation::*;
7
8use crate::*;
9
10/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/mdimporterinterfacestruct?language=objc)
11#[repr(C)]
12#[allow(unpredictable_function_pointer_comparisons)]
13#[derive(Clone, Copy, Debug, PartialEq)]
14pub struct MDImporterInterfaceStruct {
15    pub(crate) _reserved: *mut c_void,
16    pub QueryInterface:
17        Option<unsafe extern "C-unwind" fn(*mut c_void, REFIID, *mut LPVOID) -> HRESULT>,
18    pub AddRef: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
19    pub Release: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
20    pub ImporterImportData: Option<
21        unsafe extern "C-unwind" fn(
22            *mut c_void,
23            *mut CFMutableDictionary,
24            *const CFString,
25            *const CFString,
26        ) -> Boolean,
27    >,
28}
29
30#[cfg(feature = "objc2")]
31unsafe impl Encode for MDImporterInterfaceStruct {
32    const ENCODING: Encoding = Encoding::Struct("?", &[
33        <*mut c_void>::ENCODING,
34        <Option<unsafe extern "C-unwind" fn(*mut c_void,REFIID,*mut LPVOID,) -> HRESULT>>::ENCODING,
35        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
36        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
37        <Option<unsafe extern "C-unwind" fn(*mut c_void,*mut CFMutableDictionary,*const CFString,*const CFString,) -> Boolean>>::ENCODING,
38    ]);
39}
40
41#[cfg(feature = "objc2")]
42unsafe impl RefEncode for MDImporterInterfaceStruct {
43    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
44}
45
46/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/mdexporterinterfacestruct?language=objc)
47#[repr(C)]
48#[allow(unpredictable_function_pointer_comparisons)]
49#[derive(Clone, Copy, Debug, PartialEq)]
50pub struct MDExporterInterfaceStruct {
51    pub(crate) _reserved: *mut c_void,
52    pub QueryInterface:
53        Option<unsafe extern "C-unwind" fn(*mut c_void, REFIID, *mut LPVOID) -> HRESULT>,
54    pub AddRef: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
55    pub Release: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
56    pub ImporterExportData: Option<
57        unsafe extern "C-unwind" fn(
58            *mut c_void,
59            *const CFDictionary,
60            *const CFString,
61            *const CFString,
62        ) -> Boolean,
63    >,
64}
65
66#[cfg(feature = "objc2")]
67unsafe impl Encode for MDExporterInterfaceStruct {
68    const ENCODING: Encoding = Encoding::Struct("?", &[
69        <*mut c_void>::ENCODING,
70        <Option<unsafe extern "C-unwind" fn(*mut c_void,REFIID,*mut LPVOID,) -> HRESULT>>::ENCODING,
71        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
72        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
73        <Option<unsafe extern "C-unwind" fn(*mut c_void,*const CFDictionary,*const CFString,*const CFString,) -> Boolean>>::ENCODING,
74    ]);
75}
76
77#[cfg(feature = "objc2")]
78unsafe impl RefEncode for MDExporterInterfaceStruct {
79    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
80}
81
82/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/mdimporterurlinterfacestruct?language=objc)
83#[repr(C)]
84#[allow(unpredictable_function_pointer_comparisons)]
85#[derive(Clone, Copy, Debug, PartialEq)]
86pub struct MDImporterURLInterfaceStruct {
87    pub(crate) _reserved: *mut c_void,
88    pub QueryInterface:
89        Option<unsafe extern "C-unwind" fn(*mut c_void, REFIID, *mut LPVOID) -> HRESULT>,
90    pub AddRef: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
91    pub Release: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
92    pub ImporterImportURLData: Option<
93        unsafe extern "C-unwind" fn(
94            *mut c_void,
95            *mut CFMutableDictionary,
96            *const CFString,
97            *const CFURL,
98        ) -> Boolean,
99    >,
100}
101
102#[cfg(feature = "objc2")]
103unsafe impl Encode for MDImporterURLInterfaceStruct {
104    const ENCODING: Encoding = Encoding::Struct("?", &[
105        <*mut c_void>::ENCODING,
106        <Option<unsafe extern "C-unwind" fn(*mut c_void,REFIID,*mut LPVOID,) -> HRESULT>>::ENCODING,
107        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
108        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
109        <Option<unsafe extern "C-unwind" fn(*mut c_void,*mut CFMutableDictionary,*const CFString,*const CFURL,) -> Boolean>>::ENCODING,
110    ]);
111}
112
113#[cfg(feature = "objc2")]
114unsafe impl RefEncode for MDImporterURLInterfaceStruct {
115    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
116}
117
118/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/mdimporterbundlewrapperurlinterfacestruct?language=objc)
119#[repr(C)]
120#[allow(unpredictable_function_pointer_comparisons)]
121#[derive(Clone, Copy, Debug, PartialEq)]
122pub struct MDImporterBundleWrapperURLInterfaceStruct {
123    pub(crate) _reserved: *mut c_void,
124    pub QueryInterface:
125        Option<unsafe extern "C-unwind" fn(*mut c_void, REFIID, *mut LPVOID) -> HRESULT>,
126    pub AddRef: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
127    pub Release: Option<unsafe extern "C-unwind" fn(*mut c_void) -> ULONG>,
128    pub ImporterImportBundleWrapperURLData: Option<
129        unsafe extern "C-unwind" fn(
130            *mut c_void,
131            *mut CFMutableDictionary,
132            *const CFString,
133            *const CFURL,
134        ) -> Boolean,
135    >,
136}
137
138#[cfg(feature = "objc2")]
139unsafe impl Encode for MDImporterBundleWrapperURLInterfaceStruct {
140    const ENCODING: Encoding = Encoding::Struct("?", &[
141        <*mut c_void>::ENCODING,
142        <Option<unsafe extern "C-unwind" fn(*mut c_void,REFIID,*mut LPVOID,) -> HRESULT>>::ENCODING,
143        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
144        <Option<unsafe extern "C-unwind" fn(*mut c_void,) -> ULONG>>::ENCODING,
145        <Option<unsafe extern "C-unwind" fn(*mut c_void,*mut CFMutableDictionary,*const CFString,*const CFURL,) -> Boolean>>::ENCODING,
146    ]);
147}
148
149#[cfg(feature = "objc2")]
150unsafe impl RefEncode for MDImporterBundleWrapperURLInterfaceStruct {
151    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
152}