objc2_application_services/generated/HIServices/InternetConfig.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::cell::UnsafeCell;
4use core::ffi::*;
5use core::marker::{PhantomData, PhantomPinned};
6use core::ptr::NonNull;
7#[cfg(feature = "objc2")]
8use objc2::__framework_prelude::*;
9#[cfg(feature = "objc2-core-services")]
10use objc2_core_services::*;
11
12use crate::*;
13
14/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicreservedkey?language=objc)
15pub const kICReservedKey: &CStr =
16 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pkICReservedKey\0") };
17/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicarchieall?language=objc)
18pub const kICArchieAll: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pArchieAll\0") };
19/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicarchiepreferred?language=objc)
20pub const kICArchiePreferred: &CStr =
21 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pArchiePreferred\0") };
22/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccharacterset?language=objc)
23pub const kICCharacterSet: &CStr =
24 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pCharacterSet\0") };
25/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicdocumentfont?language=objc)
26pub const kICDocumentFont: &CStr =
27 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pDocumentFont\0") };
28/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicdownloadfolder?language=objc)
29pub const kICDownloadFolder: &CStr =
30 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pDownloadFolder\0") };
31/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicemail?language=objc)
32pub const kICEmail: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pEmail\0") };
33/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicftphost?language=objc)
34pub const kICFTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPHost\0") };
35/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicftpproxyaccount?language=objc)
36pub const kICFTPProxyAccount: &CStr =
37 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyAccount\0") };
38/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicftpproxyhost?language=objc)
39pub const kICFTPProxyHost: &CStr =
40 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyHost\0") };
41/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicftpproxypassword?language=objc)
42pub const kICFTPProxyPassword: &CStr =
43 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyPassword\0") };
44/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicftpproxyuser?language=objc)
45pub const kICFTPProxyUser: &CStr =
46 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyUser\0") };
47/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicfingerhost?language=objc)
48pub const kICFingerHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFingerHost\0") };
49/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicgopherhost?language=objc)
50pub const kICGopherHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pGopherHost\0") };
51/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicgopherproxy?language=objc)
52pub const kICGopherProxy: &CStr =
53 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pGopherProxy\0") };
54/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kichttpproxyhost?language=objc)
55pub const kICHTTPProxyHost: &CStr =
56 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHTTPProxyHost\0") };
57/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kichelper?language=objc)
58pub const kICHelper: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHelper\xA5\0") };
59/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kichelperdesc?language=objc)
60pub const kICHelperDesc: &CStr =
61 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHelperDesc\xA5\0") };
62/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kichelperlist?language=objc)
63pub const kICHelperList: &CStr =
64 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHelperList\xA5\0") };
65/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicirchost?language=objc)
66pub const kICIRCHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pIRCHost\0") };
67/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicinfomacall?language=objc)
68pub const kICInfoMacAll: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pInfoMacAll\0") };
69/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicinfomacpreferred?language=objc)
70pub const kICInfoMacPreferred: &CStr =
71 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pInfoMacPreferred\0") };
72/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicldapsearchbase?language=objc)
73pub const kICLDAPSearchbase: &CStr =
74 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pLDAPSearchbase\0") };
75/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicldapserver?language=objc)
76pub const kICLDAPServer: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pLDAPServer\0") };
77/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiclistfont?language=objc)
78pub const kICListFont: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pListFont\0") };
79/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmacsearchhost?language=objc)
80pub const kICMacSearchHost: &CStr =
81 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMacSearchHost\0") };
82/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmailaccount?language=objc)
83pub const kICMailAccount: &CStr =
84 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMailAccount\0") };
85/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmailheaders?language=objc)
86pub const kICMailHeaders: &CStr =
87 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMailHeaders\0") };
88/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmailpassword?language=objc)
89pub const kICMailPassword: &CStr =
90 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMailPassword\0") };
91/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapping?language=objc)
92pub const kICMapping: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMapping\0") };
93/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnntphost?language=objc)
94pub const kICNNTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNNTPHost\0") };
95/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicntphost?language=objc)
96pub const kICNTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNTPHost\0") };
97/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewmaildialog?language=objc)
98pub const kICNewMailDialog: &CStr =
99 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailDialog\0") };
100/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewmailflashicon?language=objc)
101pub const kICNewMailFlashIcon: &CStr =
102 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailFlashIcon\0") };
103/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewmailplaysound?language=objc)
104pub const kICNewMailPlaySound: &CStr =
105 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailPlaySound\0") };
106/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewmailsoundname?language=objc)
107pub const kICNewMailSoundName: &CStr =
108 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailSoundName\0") };
109/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewsauthpassword?language=objc)
110pub const kICNewsAuthPassword: &CStr =
111 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewsAuthPassword\0") };
112/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewsauthusername?language=objc)
113pub const kICNewsAuthUsername: &CStr =
114 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewsAuthUsername\0") };
115/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnewsheaders?language=objc)
116pub const kICNewsHeaders: &CStr =
117 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewsHeaders\0") };
118/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnoproxydomains?language=objc)
119pub const kICNoProxyDomains: &CStr =
120 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNoProxyDomains\0") };
121/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicorganization?language=objc)
122pub const kICOrganization: &CStr =
123 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pOrganization\0") };
124/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicphhost?language=objc)
125pub const kICPhHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pPhHost\0") };
126/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicplan?language=objc)
127pub const kICPlan: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pPlan\0") };
128/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicprinterfont?language=objc)
129pub const kICPrinterFont: &CStr =
130 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pPrinterFont\0") };
131/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicquotingstring?language=objc)
132pub const kICQuotingString: &CStr =
133 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pQuotingString\0") };
134/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicrealname?language=objc)
135pub const kICRealName: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pRealName\0") };
136/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicrtspproxyhost?language=objc)
137pub const kICRTSPProxyHost: &CStr =
138 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pRTSPProxyHost\0") };
139/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicsmtphost?language=objc)
140pub const kICSMTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSMTPHost\0") };
141/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicscreenfont?language=objc)
142pub const kICScreenFont: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pScreenFont\0") };
143/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicservices?language=objc)
144pub const kICServices: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pServices\0") };
145/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicsignature?language=objc)
146pub const kICSignature: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSignature\0") };
147/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicsnailmailaddress?language=objc)
148pub const kICSnailMailAddress: &CStr =
149 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSnailMailAddress\0") };
150/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicsockshost?language=objc)
151pub const kICSocksHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSocksHost\0") };
152/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kictelnethost?language=objc)
153pub const kICTelnetHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pTelnetHost\0") };
154/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicumichall?language=objc)
155pub const kICUMichAll: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUMichAll\0") };
156/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicumichpreferred?language=objc)
157pub const kICUMichPreferred: &CStr =
158 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUMichPreferred\0") };
159/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicuseftpproxy?language=objc)
160pub const kICUseFTPProxy: &CStr =
161 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseFTPProxy\0") };
162/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicusegopherproxy?language=objc)
163pub const kICUseGopherProxy: &CStr =
164 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseGopherProxy\0") };
165/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicusehttpproxy?language=objc)
166pub const kICUseHTTPProxy: &CStr =
167 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseHTTPProxy\0") };
168/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicusepassiveftp?language=objc)
169pub const kICUsePassiveFTP: &CStr =
170 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUsePassiveFTP\0") };
171/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicusertspproxy?language=objc)
172pub const kICUseRTSPProxy: &CStr =
173 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseRTSPProxy\0") };
174/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicusesocks?language=objc)
175pub const kICUseSocks: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseSocks\0") };
176/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwaisgateway?language=objc)
177pub const kICWAISGateway: &CStr =
178 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWAISGateway\0") };
179/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwwwhomepage?language=objc)
180pub const kICWWWHomePage: &CStr =
181 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWWWHomePage\0") };
182/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwebbackgroundcolour?language=objc)
183pub const kICWebBackgroundColour: &CStr =
184 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWebBackgroundColour\0") };
185/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwebreadcolor?language=objc)
186pub const kICWebReadColor: &CStr =
187 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\p646F6777\xA5WebReadColor\0") };
188/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwebsearchpageprefs?language=objc)
189pub const kICWebSearchPagePrefs: &CStr =
190 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWebSearchPagePrefs\0") };
191/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwebtextcolor?language=objc)
192pub const kICWebTextColor: &CStr =
193 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWebTextColor\0") };
194/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwebunderlinelinks?language=objc)
195pub const kICWebUnderlineLinks: &CStr =
196 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\p646F6777\xA5WebUnderlineLinks\0") };
197/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwebunreadcolor?language=objc)
198pub const kICWebUnreadColor: &CStr =
199 unsafe { CStr::from_bytes_with_nul_unchecked(b"\\p646F6777\xA5WebUnreadColor\0") };
200/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicwhoishost?language=objc)
201pub const kICWhoisHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWhoisHost\0") };
202/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icprefnotfounderr?language=objc)
203pub const icPrefNotFoundErr: c_int = -666;
204/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icpermerr?language=objc)
205pub const icPermErr: c_int = -667;
206/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icprefdataerr?language=objc)
207pub const icPrefDataErr: c_int = -668;
208/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icinternalerr?language=objc)
209pub const icInternalErr: c_int = -669;
210/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/ictruncatederr?language=objc)
211pub const icTruncatedErr: c_int = -670;
212/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icnomorewriterserr?language=objc)
213pub const icNoMoreWritersErr: c_int = -671;
214/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icnothingtooverrideerr?language=objc)
215pub const icNothingToOverrideErr: c_int = -672;
216/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icnourlerr?language=objc)
217pub const icNoURLErr: c_int = -673;
218/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icconfignotfounderr?language=objc)
219pub const icConfigNotFoundErr: c_int = -674;
220/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icconfiginappropriateerr?language=objc)
221pub const icConfigInappropriateErr: c_int = -675;
222/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icprofilenotfounderr?language=objc)
223pub const icProfileNotFoundErr: c_int = -676;
224/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/ictoomanyprofileserr?language=objc)
225pub const icTooManyProfilesErr: c_int = -677;
226
227/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentinterfaceversion0?language=objc)
228pub const kICComponentInterfaceVersion0: c_uint = 0x00000000;
229/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentinterfaceversion1?language=objc)
230pub const kICComponentInterfaceVersion1: c_uint = 0x00010000;
231/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentinterfaceversion2?language=objc)
232pub const kICComponentInterfaceVersion2: c_uint = 0x00020000;
233/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentinterfaceversion3?language=objc)
234pub const kICComponentInterfaceVersion3: c_uint = 0x00030000;
235/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentinterfaceversion4?language=objc)
236pub const kICComponentInterfaceVersion4: c_uint = 0x00040000;
237/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentinterfaceversion?language=objc)
238pub const kICComponentInterfaceVersion: c_uint = kICComponentInterfaceVersion4;
239
240/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/opaqueicinstance?language=objc)
241#[repr(C)]
242#[derive(Debug)]
243pub struct OpaqueICInstance {
244 inner: [u8; 0],
245 _p: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
246}
247
248#[cfg(feature = "objc2")]
249unsafe impl RefEncode for OpaqueICInstance {
250 const ENCODING_REF: Encoding = Encoding::Pointer(&Encoding::Struct("OpaqueICInstance", &[]));
251}
252
253/// **********************************************************************************************
254/// opaque type for preference reference
255/// **********************************************************************************************
256///
257/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icinstance?language=objc)
258pub type ICInstance = *mut OpaqueICInstance;
259
260/// **********************************************************************************************
261/// preference attributes type, bit number constants, and mask constants
262/// **********************************************************************************************
263///
264/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icattr?language=objc)
265pub type ICAttr = u32;
266
267/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicattrlockedbit?language=objc)
268pub const kICAttrLockedBit: c_uint = 0;
269/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicattrvolatilebit?language=objc)
270pub const kICAttrVolatileBit: c_uint = 1;
271
272/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicattrnochange?language=objc)
273pub const kICAttrNoChange: c_uint = 0xFFFFFFFF;
274/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicattrlockedmask?language=objc)
275pub const kICAttrLockedMask: c_uint = 0x00000001;
276/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicattrvolatilemask?language=objc)
277pub const kICAttrVolatileMask: c_uint = 0x00000002;
278
279/// **********************************************************************************************
280/// permissions for use with ICBegin
281/// **********************************************************************************************
282///
283/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icperm?language=objc)
284pub type ICPerm = u8;
285
286/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icnoperm?language=objc)
287pub const icNoPerm: c_uint = 0;
288/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icreadonlyperm?language=objc)
289pub const icReadOnlyPerm: c_uint = 1;
290/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icreadwriteperm?language=objc)
291pub const icReadWritePerm: c_uint = 2;
292
293/// **********************************************************************************************
294/// profile IDs
295/// **********************************************************************************************
296///
297/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icprofileid?language=objc)
298pub type ICProfileID = i32;
299
300/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icprofileidptr?language=objc)
301pub type ICProfileIDPtr = *mut ICProfileID;
302
303/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnilprofileid?language=objc)
304pub const kICNilProfileID: c_uint = 0;
305
306/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnouserinteractionbit?language=objc)
307pub const kICNoUserInteractionBit: c_uint = 0;
308
309/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnouserinteractionmask?language=objc)
310pub const kICNoUserInteractionMask: c_uint = 0x00000001;
311
312/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicfiletype?language=objc)
313pub const kICFileType: c_uint = 0x49434170;
314/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccreator?language=objc)
315pub const kICCreator: c_uint = 0x49434170;
316
317/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kinterneteventclass?language=objc)
318pub const kInternetEventClass: c_uint = 0x4755524c;
319/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaegeturl?language=objc)
320pub const kAEGetURL: c_uint = 0x4755524c;
321/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kaefetchurl?language=objc)
322pub const kAEFetchURL: c_uint = 0x4655524c;
323/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/keyaeattaching?language=objc)
324pub const keyAEAttaching: c_uint = 0x41746368;
325
326/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiceditpreferenceeventclass?language=objc)
327pub const kICEditPreferenceEventClass: c_uint = 0x49434170;
328/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiceditpreferenceevent?language=objc)
329pub const kICEditPreferenceEvent: c_uint = 0x49434170;
330/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/keyiceditpreferencedestination?language=objc)
331pub const keyICEditPreferenceDestination: c_uint = 0x64657374;
332
333/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kiccomponentversion?language=objc)
334pub const kICComponentVersion: c_uint = 0;
335/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicnumversion?language=objc)
336pub const kICNumVersion: c_uint = 1;
337
338/// **********************************************************************************************
339/// types and constants for use with kICDocumentFont, et. al.
340/// **********************************************************************************************
341///
342/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icfontrecord?language=objc)
343#[repr(C)]
344#[derive(Clone, Copy, Debug, PartialEq)]
345pub struct ICFontRecord {
346 pub size: i16,
347 pub face: Style,
348 pub pad: c_char,
349 pub font: Str255,
350}
351
352#[cfg(feature = "objc2")]
353unsafe impl Encode for ICFontRecord {
354 const ENCODING: Encoding = Encoding::Struct(
355 "ICFontRecord",
356 &[
357 <i16>::ENCODING,
358 <Style>::ENCODING,
359 <c_char>::ENCODING,
360 <Str255>::ENCODING,
361 ],
362 );
363}
364
365#[cfg(feature = "objc2")]
366unsafe impl RefEncode for ICFontRecord {
367 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
368}
369
370/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icfontrecordptr?language=objc)
371pub type ICFontRecordPtr = *mut ICFontRecord;
372
373/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icfontrecordhandle?language=objc)
374pub type ICFontRecordHandle = *mut ICFontRecordPtr;
375
376/// **********************************************************************************************
377/// types and constants for use with kICCharacterSet, et. al.
378/// **********************************************************************************************
379///
380/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icchartable?language=objc)
381#[repr(C)]
382#[derive(Clone, Copy, Debug, PartialEq)]
383pub struct ICCharTable {
384 pub netToMac: [c_uchar; 256],
385 pub macToNet: [c_uchar; 256],
386}
387
388#[cfg(feature = "objc2")]
389unsafe impl Encode for ICCharTable {
390 const ENCODING: Encoding = Encoding::Struct(
391 "ICCharTable",
392 &[<[c_uchar; 256]>::ENCODING, <[c_uchar; 256]>::ENCODING],
393 );
394}
395
396#[cfg(feature = "objc2")]
397unsafe impl RefEncode for ICCharTable {
398 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
399}
400
401/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icchartableptr?language=objc)
402pub type ICCharTablePtr = *mut ICCharTable;
403
404/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icchartablehandle?language=objc)
405pub type ICCharTableHandle = *mut ICCharTablePtr;
406
407/// **********************************************************************************************
408/// types and constants for use with kICHelper, et. al.
409/// **********************************************************************************************
410///
411/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icappspec?language=objc)
412#[repr(C, packed(2))]
413#[derive(Clone, Copy, Debug, PartialEq)]
414pub struct ICAppSpec {
415 pub fCreator: OSType,
416 pub name: Str63,
417}
418
419#[cfg(feature = "objc2")]
420unsafe impl Encode for ICAppSpec {
421 const ENCODING: Encoding =
422 Encoding::Struct("ICAppSpec", &[<OSType>::ENCODING, <Str63>::ENCODING]);
423}
424
425#[cfg(feature = "objc2")]
426unsafe impl RefEncode for ICAppSpec {
427 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
428}
429
430/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icappspecptr?language=objc)
431pub type ICAppSpecPtr = *mut ICAppSpec;
432
433/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icappspechandle?language=objc)
434pub type ICAppSpecHandle = *mut ICAppSpecPtr;
435
436/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icappspeclist?language=objc)
437#[repr(C)]
438#[derive(Clone, Copy, Debug, PartialEq)]
439pub struct ICAppSpecList {
440 pub numberOfItems: i16,
441 pub appSpecs: [ICAppSpec; 1],
442}
443
444#[cfg(feature = "objc2")]
445unsafe impl Encode for ICAppSpecList {
446 const ENCODING: Encoding = Encoding::Struct(
447 "ICAppSpecList",
448 &[<i16>::ENCODING, <[ICAppSpec; 1]>::ENCODING],
449 );
450}
451
452#[cfg(feature = "objc2")]
453unsafe impl RefEncode for ICAppSpecList {
454 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
455}
456
457/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icappspeclistptr?language=objc)
458pub type ICAppSpecListPtr = *mut ICAppSpecList;
459
460/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icappspeclisthandle?language=objc)
461pub type ICAppSpecListHandle = *mut ICAppSpecListPtr;
462
463/// **********************************************************************************************
464/// types and constants for use with ICMapFilename, et. al.
465/// **********************************************************************************************
466///
467/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icmapentryflags?language=objc)
468pub type ICMapEntryFlags = i32;
469
470/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icfixedlength?language=objc)
471pub type ICFixedLength = i16;
472
473/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icmapentry?language=objc)
474#[repr(C, packed(2))]
475#[derive(Clone, Copy, Debug, PartialEq)]
476pub struct ICMapEntry {
477 pub totalLength: i16,
478 pub fixedLength: ICFixedLength,
479 pub version: i16,
480 pub fileType: OSType,
481 pub fileCreator: OSType,
482 pub postCreator: OSType,
483 pub flags: ICMapEntryFlags,
484 pub extension: Str255,
485 pub creatorAppName: Str255,
486 pub postAppName: Str255,
487 pub MIMEType: Str255,
488 pub entryName: Str255,
489}
490
491#[cfg(feature = "objc2")]
492unsafe impl Encode for ICMapEntry {
493 const ENCODING: Encoding = Encoding::Struct(
494 "ICMapEntry",
495 &[
496 <i16>::ENCODING,
497 <ICFixedLength>::ENCODING,
498 <i16>::ENCODING,
499 <OSType>::ENCODING,
500 <OSType>::ENCODING,
501 <OSType>::ENCODING,
502 <ICMapEntryFlags>::ENCODING,
503 <Str255>::ENCODING,
504 <Str255>::ENCODING,
505 <Str255>::ENCODING,
506 <Str255>::ENCODING,
507 <Str255>::ENCODING,
508 ],
509 );
510}
511
512#[cfg(feature = "objc2")]
513unsafe impl RefEncode for ICMapEntry {
514 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
515}
516
517/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icmapentryptr?language=objc)
518pub type ICMapEntryPtr = *mut ICMapEntry;
519
520/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icmapentryhandle?language=objc)
521pub type ICMapEntryHandle = *mut ICMapEntryPtr;
522
523/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapfixedlength?language=objc)
524pub const kICMapFixedLength: c_uint = 22;
525
526/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapbinarybit?language=objc)
527pub const kICMapBinaryBit: c_uint = 0;
528/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapresourceforkbit?language=objc)
529pub const kICMapResourceForkBit: c_uint = 1;
530/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapdataforkbit?language=objc)
531pub const kICMapDataForkBit: c_uint = 2;
532/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmappostbit?language=objc)
533pub const kICMapPostBit: c_uint = 3;
534/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapnotincomingbit?language=objc)
535pub const kICMapNotIncomingBit: c_uint = 4;
536/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapnotoutgoingbit?language=objc)
537pub const kICMapNotOutgoingBit: c_uint = 5;
538
539/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapbinarymask?language=objc)
540pub const kICMapBinaryMask: c_uint = 0x00000001;
541/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapresourceforkmask?language=objc)
542pub const kICMapResourceForkMask: c_uint = 0x00000002;
543/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapdataforkmask?language=objc)
544pub const kICMapDataForkMask: c_uint = 0x00000004;
545/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmappostmask?language=objc)
546pub const kICMapPostMask: c_uint = 0x00000008;
547/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapnotincomingmask?language=objc)
548pub const kICMapNotIncomingMask: c_uint = 0x00000010;
549/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicmapnotoutgoingmask?language=objc)
550pub const kICMapNotOutgoingMask: c_uint = 0x00000020;
551
552/// **********************************************************************************************
553/// types and constants for use with kICServices, et. al.
554/// **********************************************************************************************
555///
556/// See also [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icserviceentryflags?language=objc)
557pub type ICServiceEntryFlags = i16;
558
559/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icserviceentry?language=objc)
560#[repr(C)]
561#[derive(Clone, Copy, Debug, PartialEq)]
562pub struct ICServiceEntry {
563 pub name: Str255,
564 pub port: i16,
565 pub flags: ICServiceEntryFlags,
566}
567
568#[cfg(feature = "objc2")]
569unsafe impl Encode for ICServiceEntry {
570 const ENCODING: Encoding = Encoding::Struct(
571 "ICServiceEntry",
572 &[
573 <Str255>::ENCODING,
574 <i16>::ENCODING,
575 <ICServiceEntryFlags>::ENCODING,
576 ],
577 );
578}
579
580#[cfg(feature = "objc2")]
581unsafe impl RefEncode for ICServiceEntry {
582 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
583}
584
585/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icserviceentryptr?language=objc)
586pub type ICServiceEntryPtr = *mut ICServiceEntry;
587
588/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icserviceentryhandle?language=objc)
589pub type ICServiceEntryHandle = *mut ICServiceEntryPtr;
590
591/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicservicestcpbit?language=objc)
592pub const kICServicesTCPBit: c_uint = 0;
593/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicservicesudpbit?language=objc)
594pub const kICServicesUDPBit: c_uint = 1;
595
596/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicservicestcpmask?language=objc)
597pub const kICServicesTCPMask: c_uint = 0x00000001;
598/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kicservicesudpmask?language=objc)
599pub const kICServicesUDPMask: c_uint = 0x00000002;
600
601/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icservices?language=objc)
602#[repr(C)]
603#[derive(Clone, Copy, Debug, PartialEq)]
604pub struct ICServices {
605 pub count: i16,
606 pub services: [ICServiceEntry; 1],
607}
608
609#[cfg(feature = "objc2")]
610unsafe impl Encode for ICServices {
611 const ENCODING: Encoding = Encoding::Struct(
612 "ICServices",
613 &[<i16>::ENCODING, <[ICServiceEntry; 1]>::ENCODING],
614 );
615}
616
617#[cfg(feature = "objc2")]
618unsafe impl RefEncode for ICServices {
619 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
620}
621
622/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icservicesptr?language=objc)
623pub type ICServicesPtr = *mut ICServices;
624
625/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/icserviceshandle?language=objc)
626pub type ICServicesHandle = *mut ICServicesPtr;
627
628extern "C-unwind" {
629 /// **********************************************************************************************
630 ///
631 /// FUNCTIONS
632 ///
633 /// What do the annotations after each API mean?
634 /// --------------------------------------------
635 ///
636 /// [r1] Requires IC 1.1 or higher.
637 /// [r2] Requires IC 1.2 or higher.
638 /// [r3] Requires IC 2.0 or higher.
639 /// [r4] Requires IC 2.5 or higher.
640 ///
641 /// IMPORTANT:
642 ///
643 /// In IC 2.5, instances automatically use the default configuration.
644 /// You no longer need to configure an instance explicitly, except
645 /// if your code might run with an older version of IC. So the following
646 /// notes only apply to IC 2.0 and earlier.
647 ///
648 /// [c1] You must have specified a configuration before calling this routine.
649 ///
650 /// [c2] You must have specified the default configuration before calling this
651 /// routine.
652 ///
653 /// [c3] You do not need to specify a configuration before calling this routine.
654 ///
655 /// [b1] You must be inside a Begin/End pair when calling this routine.
656 ///
657 /// [b2] You must be inside a Begin/End read/write pair when calling this routine.
658 ///
659 /// [b3] You do not need to be inside a Begin/End pair when calling this routine.
660 ///
661 /// [b4] If you are getting or setting multiple preferences, you should make this
662 /// call inside a Begin/End pair. If you do not make this call inside a Begin/End
663 /// pair, the call will automatically do it for you.
664 ///
665 /// [b5] It is illegal to call this routine inside a Begin/End pair.
666 ///
667 /// **********************************************************************************************
668 ///
669 /// # Safety
670 ///
671 /// `inst` must be a valid pointer.
672 #[deprecated]
673 pub fn ICStart(inst: *mut ICInstance, signature: OSType) -> OSStatus;
674}
675
676extern "C-unwind" {
677 /// # Safety
678 ///
679 /// `inst` must be a valid pointer.
680 #[deprecated]
681 pub fn ICStop(inst: ICInstance) -> OSStatus;
682}
683
684extern "C-unwind" {
685 /// # Safety
686 ///
687 /// - `inst` must be a valid pointer.
688 /// - `version` must be a valid pointer.
689 #[deprecated]
690 pub fn ICGetVersion(inst: ICInstance, which_version: c_long, version: *mut u32) -> OSStatus;
691}
692
693extern "C-unwind" {
694 /// # Safety
695 ///
696 /// - `inst` must be a valid pointer.
697 /// - `seed` must be a valid pointer.
698 #[deprecated]
699 pub fn ICGetSeed(inst: ICInstance, seed: *mut c_long) -> OSStatus;
700}
701
702extern "C-unwind" {
703 /// # Safety
704 ///
705 /// - `inst` must be a valid pointer.
706 /// - `perm` must be a valid pointer.
707 #[deprecated]
708 pub fn ICGetPerm(inst: ICInstance, perm: *mut ICPerm) -> OSStatus;
709}
710
711extern "C-unwind" {
712 /// # Safety
713 ///
714 /// `inst` must be a valid pointer.
715 #[deprecated]
716 pub fn ICBegin(inst: ICInstance, perm: ICPerm) -> OSStatus;
717}
718
719extern "C-unwind" {
720 /// # Safety
721 ///
722 /// - `inst` must be a valid pointer.
723 /// - `key` must be a valid pointer.
724 /// - `attr` must be a valid pointer.
725 /// - `buf` must be a valid pointer.
726 /// - `size` must be a valid pointer.
727 #[deprecated]
728 pub fn ICGetPref(
729 inst: ICInstance,
730 key: ConstStr255Param,
731 attr: *mut ICAttr,
732 buf: *mut c_void,
733 size: *mut c_long,
734 ) -> OSStatus;
735}
736
737extern "C-unwind" {
738 /// # Safety
739 ///
740 /// - `inst` must be a valid pointer.
741 /// - `key` must be a valid pointer.
742 /// - `buf` must be a valid pointer.
743 #[deprecated]
744 pub fn ICSetPref(
745 inst: ICInstance,
746 key: ConstStr255Param,
747 attr: ICAttr,
748 buf: *const c_void,
749 size: c_long,
750 ) -> OSStatus;
751}
752
753extern "C-unwind" {
754 /// # Safety
755 ///
756 /// - `inst` must be a valid pointer.
757 /// - `key` must be a valid pointer.
758 /// - `attr` must be a valid pointer.
759 /// - `prefh` must be a valid pointer.
760 #[deprecated]
761 pub fn ICFindPrefHandle(
762 inst: ICInstance,
763 key: ConstStr255Param,
764 attr: *mut ICAttr,
765 prefh: Handle,
766 ) -> OSStatus;
767}
768
769extern "C-unwind" {
770 /// # Safety
771 ///
772 /// - `inst` must be a valid pointer.
773 /// - `key` must be a valid pointer.
774 /// - `attr` must be a valid pointer.
775 /// - `prefh` must be a valid pointer.
776 #[deprecated]
777 pub fn ICGetPrefHandle(
778 inst: ICInstance,
779 key: ConstStr255Param,
780 attr: *mut ICAttr,
781 prefh: *mut Handle,
782 ) -> OSStatus;
783}
784
785extern "C-unwind" {
786 /// # Safety
787 ///
788 /// - `inst` must be a valid pointer.
789 /// - `key` must be a valid pointer.
790 /// - `prefh` must be a valid pointer.
791 #[deprecated]
792 pub fn ICSetPrefHandle(
793 inst: ICInstance,
794 key: ConstStr255Param,
795 attr: ICAttr,
796 prefh: Handle,
797 ) -> OSStatus;
798}
799
800extern "C-unwind" {
801 /// # Safety
802 ///
803 /// - `inst` must be a valid pointer.
804 /// - `count` must be a valid pointer.
805 #[deprecated]
806 pub fn ICCountPref(inst: ICInstance, count: *mut c_long) -> OSStatus;
807}
808
809extern "C-unwind" {
810 /// # Safety
811 ///
812 /// - `inst` must be a valid pointer.
813 /// - `key` must be a valid pointer.
814 #[deprecated]
815 pub fn ICDeletePref(inst: ICInstance, key: ConstStr255Param) -> OSStatus;
816}
817
818extern "C-unwind" {
819 /// # Safety
820 ///
821 /// `inst` must be a valid pointer.
822 #[deprecated]
823 pub fn ICEnd(inst: ICInstance) -> OSStatus;
824}
825
826extern "C-unwind" {
827 /// # Safety
828 ///
829 /// - `inst` must be a valid pointer.
830 /// - `key` must be a valid pointer.
831 /// - `pref_h` must be a valid pointer.
832 #[deprecated]
833 pub fn ICGetDefaultPref(inst: ICInstance, key: ConstStr255Param, pref_h: Handle) -> OSStatus;
834}
835
836extern "C-unwind" {
837 /// # Safety
838 ///
839 /// - `inst` must be a valid pointer.
840 /// - `key` must be a valid pointer.
841 #[deprecated]
842 pub fn ICEditPreferences(inst: ICInstance, key: ConstStr255Param) -> OSStatus;
843}
844
845extern "C-unwind" {
846 /// # Safety
847 ///
848 /// - `inst` must be a valid pointer.
849 /// - `hint` must be a valid pointer.
850 /// - `data` must be a valid pointer.
851 /// - `sel_start` must be a valid pointer.
852 /// - `sel_end` must be a valid pointer.
853 #[deprecated]
854 pub fn ICLaunchURL(
855 inst: ICInstance,
856 hint: ConstStr255Param,
857 data: *const c_void,
858 len: c_long,
859 sel_start: *mut c_long,
860 sel_end: *mut c_long,
861 ) -> OSStatus;
862}
863
864extern "C-unwind" {
865 /// # Safety
866 ///
867 /// - `inst` must be a valid pointer.
868 /// - `hint` must be a valid pointer.
869 /// - `data` must be a valid pointer.
870 /// - `sel_start` must be a valid pointer.
871 /// - `sel_end` must be a valid pointer.
872 /// - `url` must be a valid pointer.
873 #[deprecated]
874 pub fn ICParseURL(
875 inst: ICInstance,
876 hint: ConstStr255Param,
877 data: *const c_void,
878 len: c_long,
879 sel_start: *mut c_long,
880 sel_end: *mut c_long,
881 url: Handle,
882 ) -> OSStatus;
883}
884
885extern "C-unwind" {
886 /// # Safety
887 ///
888 /// - `inst` must be a valid pointer.
889 /// - `url_h` must be a valid pointer.
890 /// - `the_event` must be a valid pointer.
891 #[cfg(feature = "objc2-core-services")]
892 #[deprecated]
893 pub fn ICCreateGURLEvent(
894 inst: ICInstance,
895 helper_creator: OSType,
896 url_h: Handle,
897 the_event: *mut AppleEvent,
898 ) -> OSStatus;
899}
900
901extern "C-unwind" {
902 /// # Safety
903 ///
904 /// - `inst` must be a valid pointer.
905 /// - `the_event` must be a valid pointer.
906 #[cfg(feature = "objc2-core-services")]
907 #[deprecated]
908 pub fn ICSendGURLEvent(inst: ICInstance, the_event: *mut AppleEvent) -> OSStatus;
909}
910
911extern "C-unwind" {
912 /// # Safety
913 ///
914 /// - `inst` must be a valid pointer.
915 /// - `filename` must be a valid pointer.
916 /// - `entry` must be a valid pointer.
917 #[deprecated]
918 pub fn ICMapFilename(
919 inst: ICInstance,
920 filename: ConstStr255Param,
921 entry: *mut ICMapEntry,
922 ) -> OSStatus;
923}
924
925extern "C-unwind" {
926 /// # Safety
927 ///
928 /// - `inst` must be a valid pointer.
929 /// - `filename` must be a valid pointer.
930 /// - `entry` must be a valid pointer.
931 #[deprecated]
932 pub fn ICMapTypeCreator(
933 inst: ICInstance,
934 f_type: OSType,
935 f_creator: OSType,
936 filename: ConstStr255Param,
937 entry: *mut ICMapEntry,
938 ) -> OSStatus;
939}
940
941extern "C-unwind" {
942 /// # Safety
943 ///
944 /// - `inst` must be a valid pointer.
945 /// - `entries` must be a valid pointer.
946 /// - `filename` must be a valid pointer.
947 /// - `entry` must be a valid pointer.
948 #[deprecated]
949 pub fn ICMapEntriesFilename(
950 inst: ICInstance,
951 entries: Handle,
952 filename: ConstStr255Param,
953 entry: *mut ICMapEntry,
954 ) -> OSStatus;
955}
956
957extern "C-unwind" {
958 /// # Safety
959 ///
960 /// - `inst` must be a valid pointer.
961 /// - `entries` must be a valid pointer.
962 /// - `filename` must be a valid pointer.
963 /// - `entry` must be a valid pointer.
964 #[deprecated]
965 pub fn ICMapEntriesTypeCreator(
966 inst: ICInstance,
967 entries: Handle,
968 f_type: OSType,
969 f_creator: OSType,
970 filename: ConstStr255Param,
971 entry: *mut ICMapEntry,
972 ) -> OSStatus;
973}
974
975extern "C-unwind" {
976 /// # Safety
977 ///
978 /// - `inst` must be a valid pointer.
979 /// - `entries` must be a valid pointer.
980 /// - `count` must be a valid pointer.
981 #[deprecated]
982 pub fn ICCountMapEntries(inst: ICInstance, entries: Handle, count: *mut c_long) -> OSStatus;
983}
984
985extern "C-unwind" {
986 /// # Safety
987 ///
988 /// - `inst` must be a valid pointer.
989 /// - `entries` must be a valid pointer.
990 /// - `pos` must be a valid pointer.
991 /// - `entry` must be a valid pointer.
992 #[deprecated]
993 pub fn ICGetIndMapEntry(
994 inst: ICInstance,
995 entries: Handle,
996 index: c_long,
997 pos: *mut c_long,
998 entry: *mut ICMapEntry,
999 ) -> OSStatus;
1000}
1001
1002extern "C-unwind" {
1003 /// # Safety
1004 ///
1005 /// - `inst` must be a valid pointer.
1006 /// - `entries` must be a valid pointer.
1007 /// - `entry` must be a valid pointer.
1008 #[deprecated]
1009 pub fn ICGetMapEntry(
1010 inst: ICInstance,
1011 entries: Handle,
1012 pos: c_long,
1013 entry: *mut ICMapEntry,
1014 ) -> OSStatus;
1015}
1016
1017extern "C-unwind" {
1018 /// # Safety
1019 ///
1020 /// - `inst` must be a valid pointer.
1021 /// - `entries` must be a valid pointer.
1022 /// - `entry` must be a valid pointer.
1023 #[deprecated]
1024 pub fn ICSetMapEntry(
1025 inst: ICInstance,
1026 entries: Handle,
1027 pos: c_long,
1028 entry: *const ICMapEntry,
1029 ) -> OSStatus;
1030}
1031
1032extern "C-unwind" {
1033 /// # Safety
1034 ///
1035 /// - `inst` must be a valid pointer.
1036 /// - `entries` must be a valid pointer.
1037 #[deprecated]
1038 pub fn ICDeleteMapEntry(inst: ICInstance, entries: Handle, pos: c_long) -> OSStatus;
1039}
1040
1041extern "C-unwind" {
1042 /// # Safety
1043 ///
1044 /// - `inst` must be a valid pointer.
1045 /// - `entries` must be a valid pointer.
1046 /// - `entry` must be a valid pointer.
1047 #[deprecated]
1048 pub fn ICAddMapEntry(inst: ICInstance, entries: Handle, entry: *const ICMapEntry) -> OSStatus;
1049}
1050
1051extern "C-unwind" {
1052 /// # Safety
1053 ///
1054 /// - `inst` must be a valid pointer.
1055 /// - `current_id` must be a valid pointer.
1056 #[deprecated]
1057 pub fn ICGetCurrentProfile(inst: ICInstance, current_id: *mut ICProfileID) -> OSStatus;
1058}
1059
1060extern "C-unwind" {
1061 /// # Safety
1062 ///
1063 /// `inst` must be a valid pointer.
1064 #[deprecated]
1065 pub fn ICSetCurrentProfile(inst: ICInstance, new_id: ICProfileID) -> OSStatus;
1066}
1067
1068extern "C-unwind" {
1069 /// # Safety
1070 ///
1071 /// - `inst` must be a valid pointer.
1072 /// - `count` must be a valid pointer.
1073 #[deprecated]
1074 pub fn ICCountProfiles(inst: ICInstance, count: *mut c_long) -> OSStatus;
1075}
1076
1077extern "C-unwind" {
1078 /// # Safety
1079 ///
1080 /// - `inst` must be a valid pointer.
1081 /// - `this_id` must be a valid pointer.
1082 #[deprecated]
1083 pub fn ICGetIndProfile(inst: ICInstance, index: c_long, this_id: *mut ICProfileID) -> OSStatus;
1084}
1085
1086extern "C-unwind" {
1087 /// # Safety
1088 ///
1089 /// - `inst` must be a valid pointer.
1090 /// - `name` must be a valid pointer.
1091 #[deprecated]
1092 pub fn ICSetProfileName(
1093 inst: ICInstance,
1094 this_id: ICProfileID,
1095 name: ConstStr255Param,
1096 ) -> OSStatus;
1097}
1098
1099extern "C-unwind" {
1100 /// # Safety
1101 ///
1102 /// - `inst` must be a valid pointer.
1103 /// - `new_id` must be a valid pointer.
1104 #[deprecated]
1105 pub fn ICAddProfile(
1106 inst: ICInstance,
1107 prototype_id: ICProfileID,
1108 new_id: *mut ICProfileID,
1109 ) -> OSStatus;
1110}
1111
1112extern "C-unwind" {
1113 /// # Safety
1114 ///
1115 /// `inst` must be a valid pointer.
1116 #[deprecated]
1117 pub fn ICDeleteProfile(inst: ICInstance, this_id: ICProfileID) -> OSStatus;
1118}