use core::cell::UnsafeCell;
use core::ffi::*;
use core::marker::{PhantomData, PhantomPinned};
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-services")]
use objc2_core_services::*;
use crate::*;
pub const kICReservedKey: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pkICReservedKey\0") };
pub const kICArchieAll: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pArchieAll\0") };
pub const kICArchiePreferred: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pArchiePreferred\0") };
pub const kICCharacterSet: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pCharacterSet\0") };
pub const kICDocumentFont: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pDocumentFont\0") };
pub const kICDownloadFolder: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pDownloadFolder\0") };
pub const kICEmail: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pEmail\0") };
pub const kICFTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPHost\0") };
pub const kICFTPProxyAccount: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyAccount\0") };
pub const kICFTPProxyHost: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyHost\0") };
pub const kICFTPProxyPassword: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyPassword\0") };
pub const kICFTPProxyUser: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFTPProxyUser\0") };
pub const kICFingerHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pFingerHost\0") };
pub const kICGopherHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pGopherHost\0") };
pub const kICGopherProxy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pGopherProxy\0") };
pub const kICHTTPProxyHost: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHTTPProxyHost\0") };
pub const kICHelper: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHelper\xA5\0") };
pub const kICHelperDesc: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHelperDesc\xA5\0") };
pub const kICHelperList: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pHelperList\xA5\0") };
pub const kICIRCHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pIRCHost\0") };
pub const kICInfoMacAll: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pInfoMacAll\0") };
pub const kICInfoMacPreferred: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pInfoMacPreferred\0") };
pub const kICLDAPSearchbase: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pLDAPSearchbase\0") };
pub const kICLDAPServer: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pLDAPServer\0") };
pub const kICListFont: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pListFont\0") };
pub const kICMacSearchHost: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMacSearchHost\0") };
pub const kICMailAccount: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMailAccount\0") };
pub const kICMailHeaders: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMailHeaders\0") };
pub const kICMailPassword: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMailPassword\0") };
pub const kICMapping: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pMapping\0") };
pub const kICNNTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNNTPHost\0") };
pub const kICNTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNTPHost\0") };
pub const kICNewMailDialog: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailDialog\0") };
pub const kICNewMailFlashIcon: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailFlashIcon\0") };
pub const kICNewMailPlaySound: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailPlaySound\0") };
pub const kICNewMailSoundName: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewMailSoundName\0") };
pub const kICNewsAuthPassword: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewsAuthPassword\0") };
pub const kICNewsAuthUsername: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewsAuthUsername\0") };
pub const kICNewsHeaders: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNewsHeaders\0") };
pub const kICNoProxyDomains: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pNoProxyDomains\0") };
pub const kICOrganization: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pOrganization\0") };
pub const kICPhHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pPhHost\0") };
pub const kICPlan: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pPlan\0") };
pub const kICPrinterFont: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pPrinterFont\0") };
pub const kICQuotingString: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pQuotingString\0") };
pub const kICRealName: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pRealName\0") };
pub const kICRTSPProxyHost: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pRTSPProxyHost\0") };
pub const kICSMTPHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSMTPHost\0") };
pub const kICScreenFont: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pScreenFont\0") };
pub const kICServices: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pServices\0") };
pub const kICSignature: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSignature\0") };
pub const kICSnailMailAddress: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSnailMailAddress\0") };
pub const kICSocksHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pSocksHost\0") };
pub const kICTelnetHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pTelnetHost\0") };
pub const kICUMichAll: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUMichAll\0") };
pub const kICUMichPreferred: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUMichPreferred\0") };
pub const kICUseFTPProxy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseFTPProxy\0") };
pub const kICUseGopherProxy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseGopherProxy\0") };
pub const kICUseHTTPProxy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseHTTPProxy\0") };
pub const kICUsePassiveFTP: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUsePassiveFTP\0") };
pub const kICUseRTSPProxy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseRTSPProxy\0") };
pub const kICUseSocks: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pUseSocks\0") };
pub const kICWAISGateway: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWAISGateway\0") };
pub const kICWWWHomePage: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWWWHomePage\0") };
pub const kICWebBackgroundColour: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWebBackgroundColour\0") };
pub const kICWebReadColor: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\p646F6777\xA5WebReadColor\0") };
pub const kICWebSearchPagePrefs: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWebSearchPagePrefs\0") };
pub const kICWebTextColor: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWebTextColor\0") };
pub const kICWebUnderlineLinks: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\p646F6777\xA5WebUnderlineLinks\0") };
pub const kICWebUnreadColor: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"\\p646F6777\xA5WebUnreadColor\0") };
pub const kICWhoisHost: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"\\pWhoisHost\0") };
pub const icPrefNotFoundErr: c_int = -666;
pub const icPermErr: c_int = -667;
pub const icPrefDataErr: c_int = -668;
pub const icInternalErr: c_int = -669;
pub const icTruncatedErr: c_int = -670;
pub const icNoMoreWritersErr: c_int = -671;
pub const icNothingToOverrideErr: c_int = -672;
pub const icNoURLErr: c_int = -673;
pub const icConfigNotFoundErr: c_int = -674;
pub const icConfigInappropriateErr: c_int = -675;
pub const icProfileNotFoundErr: c_int = -676;
pub const icTooManyProfilesErr: c_int = -677;
pub const kICComponentInterfaceVersion0: c_uint = 0x00000000;
pub const kICComponentInterfaceVersion1: c_uint = 0x00010000;
pub const kICComponentInterfaceVersion2: c_uint = 0x00020000;
pub const kICComponentInterfaceVersion3: c_uint = 0x00030000;
pub const kICComponentInterfaceVersion4: c_uint = 0x00040000;
pub const kICComponentInterfaceVersion: c_uint = kICComponentInterfaceVersion4;
#[repr(C)]
#[derive(Debug)]
pub struct OpaqueICInstance {
inner: [u8; 0],
_p: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for OpaqueICInstance {
const ENCODING_REF: Encoding = Encoding::Pointer(&Encoding::Struct("OpaqueICInstance", &[]));
}
pub type ICInstance = *mut OpaqueICInstance;
pub type ICAttr = u32;
pub const kICAttrLockedBit: c_uint = 0;
pub const kICAttrVolatileBit: c_uint = 1;
pub const kICAttrNoChange: c_uint = 0xFFFFFFFF;
pub const kICAttrLockedMask: c_uint = 0x00000001;
pub const kICAttrVolatileMask: c_uint = 0x00000002;
pub type ICPerm = u8;
pub const icNoPerm: c_uint = 0;
pub const icReadOnlyPerm: c_uint = 1;
pub const icReadWritePerm: c_uint = 2;
pub type ICProfileID = i32;
pub type ICProfileIDPtr = *mut ICProfileID;
pub const kICNilProfileID: c_uint = 0;
pub const kICNoUserInteractionBit: c_uint = 0;
pub const kICNoUserInteractionMask: c_uint = 0x00000001;
pub const kICFileType: c_uint = 0x49434170;
pub const kICCreator: c_uint = 0x49434170;
pub const kInternetEventClass: c_uint = 0x4755524c;
pub const kAEGetURL: c_uint = 0x4755524c;
pub const kAEFetchURL: c_uint = 0x4655524c;
pub const keyAEAttaching: c_uint = 0x41746368;
pub const kICEditPreferenceEventClass: c_uint = 0x49434170;
pub const kICEditPreferenceEvent: c_uint = 0x49434170;
pub const keyICEditPreferenceDestination: c_uint = 0x64657374;
pub const kICComponentVersion: c_uint = 0;
pub const kICNumVersion: c_uint = 1;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICFontRecord {
pub size: i16,
pub face: Style,
pub pad: c_char,
pub font: Str255,
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICFontRecord {
const ENCODING: Encoding = Encoding::Struct(
"ICFontRecord",
&[
<i16>::ENCODING,
<Style>::ENCODING,
<c_char>::ENCODING,
<Str255>::ENCODING,
],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICFontRecord {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICFontRecordPtr = *mut ICFontRecord;
pub type ICFontRecordHandle = *mut ICFontRecordPtr;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICCharTable {
pub netToMac: [c_uchar; 256],
pub macToNet: [c_uchar; 256],
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICCharTable {
const ENCODING: Encoding = Encoding::Struct(
"ICCharTable",
&[<[c_uchar; 256]>::ENCODING, <[c_uchar; 256]>::ENCODING],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICCharTable {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICCharTablePtr = *mut ICCharTable;
pub type ICCharTableHandle = *mut ICCharTablePtr;
#[repr(C, packed(2))]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICAppSpec {
pub fCreator: OSType,
pub name: Str63,
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICAppSpec {
const ENCODING: Encoding =
Encoding::Struct("ICAppSpec", &[<OSType>::ENCODING, <Str63>::ENCODING]);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICAppSpec {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICAppSpecPtr = *mut ICAppSpec;
pub type ICAppSpecHandle = *mut ICAppSpecPtr;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICAppSpecList {
pub numberOfItems: i16,
pub appSpecs: [ICAppSpec; 1],
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICAppSpecList {
const ENCODING: Encoding = Encoding::Struct(
"ICAppSpecList",
&[<i16>::ENCODING, <[ICAppSpec; 1]>::ENCODING],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICAppSpecList {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICAppSpecListPtr = *mut ICAppSpecList;
pub type ICAppSpecListHandle = *mut ICAppSpecListPtr;
pub type ICMapEntryFlags = i32;
pub type ICFixedLength = i16;
#[repr(C, packed(2))]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICMapEntry {
pub totalLength: i16,
pub fixedLength: ICFixedLength,
pub version: i16,
pub fileType: OSType,
pub fileCreator: OSType,
pub postCreator: OSType,
pub flags: ICMapEntryFlags,
pub extension: Str255,
pub creatorAppName: Str255,
pub postAppName: Str255,
pub MIMEType: Str255,
pub entryName: Str255,
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICMapEntry {
const ENCODING: Encoding = Encoding::Struct(
"ICMapEntry",
&[
<i16>::ENCODING,
<ICFixedLength>::ENCODING,
<i16>::ENCODING,
<OSType>::ENCODING,
<OSType>::ENCODING,
<OSType>::ENCODING,
<ICMapEntryFlags>::ENCODING,
<Str255>::ENCODING,
<Str255>::ENCODING,
<Str255>::ENCODING,
<Str255>::ENCODING,
<Str255>::ENCODING,
],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICMapEntry {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICMapEntryPtr = *mut ICMapEntry;
pub type ICMapEntryHandle = *mut ICMapEntryPtr;
pub const kICMapFixedLength: c_uint = 22;
pub const kICMapBinaryBit: c_uint = 0;
pub const kICMapResourceForkBit: c_uint = 1;
pub const kICMapDataForkBit: c_uint = 2;
pub const kICMapPostBit: c_uint = 3;
pub const kICMapNotIncomingBit: c_uint = 4;
pub const kICMapNotOutgoingBit: c_uint = 5;
pub const kICMapBinaryMask: c_uint = 0x00000001;
pub const kICMapResourceForkMask: c_uint = 0x00000002;
pub const kICMapDataForkMask: c_uint = 0x00000004;
pub const kICMapPostMask: c_uint = 0x00000008;
pub const kICMapNotIncomingMask: c_uint = 0x00000010;
pub const kICMapNotOutgoingMask: c_uint = 0x00000020;
pub type ICServiceEntryFlags = i16;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICServiceEntry {
pub name: Str255,
pub port: i16,
pub flags: ICServiceEntryFlags,
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICServiceEntry {
const ENCODING: Encoding = Encoding::Struct(
"ICServiceEntry",
&[
<Str255>::ENCODING,
<i16>::ENCODING,
<ICServiceEntryFlags>::ENCODING,
],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICServiceEntry {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICServiceEntryPtr = *mut ICServiceEntry;
pub type ICServiceEntryHandle = *mut ICServiceEntryPtr;
pub const kICServicesTCPBit: c_uint = 0;
pub const kICServicesUDPBit: c_uint = 1;
pub const kICServicesTCPMask: c_uint = 0x00000001;
pub const kICServicesUDPMask: c_uint = 0x00000002;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ICServices {
pub count: i16,
pub services: [ICServiceEntry; 1],
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ICServices {
const ENCODING: Encoding = Encoding::Struct(
"ICServices",
&[<i16>::ENCODING, <[ICServiceEntry; 1]>::ENCODING],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ICServices {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
pub type ICServicesPtr = *mut ICServices;
pub type ICServicesHandle = *mut ICServicesPtr;
extern "C-unwind" {
#[deprecated]
pub fn ICStart(inst: *mut ICInstance, signature: OSType) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICStop(inst: ICInstance) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetVersion(inst: ICInstance, which_version: c_long, version: *mut u32) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetSeed(inst: ICInstance, seed: *mut c_long) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetPerm(inst: ICInstance, perm: *mut ICPerm) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICBegin(inst: ICInstance, perm: ICPerm) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetPref(
inst: ICInstance,
key: ConstStr255Param,
attr: *mut ICAttr,
buf: *mut c_void,
size: *mut c_long,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICSetPref(
inst: ICInstance,
key: ConstStr255Param,
attr: ICAttr,
buf: *const c_void,
size: c_long,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICFindPrefHandle(
inst: ICInstance,
key: ConstStr255Param,
attr: *mut ICAttr,
prefh: Handle,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetPrefHandle(
inst: ICInstance,
key: ConstStr255Param,
attr: *mut ICAttr,
prefh: *mut Handle,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICSetPrefHandle(
inst: ICInstance,
key: ConstStr255Param,
attr: ICAttr,
prefh: Handle,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICCountPref(inst: ICInstance, count: *mut c_long) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICDeletePref(inst: ICInstance, key: ConstStr255Param) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICEnd(inst: ICInstance) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetDefaultPref(inst: ICInstance, key: ConstStr255Param, pref_h: Handle) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICEditPreferences(inst: ICInstance, key: ConstStr255Param) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICLaunchURL(
inst: ICInstance,
hint: ConstStr255Param,
data: *const c_void,
len: c_long,
sel_start: *mut c_long,
sel_end: *mut c_long,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICParseURL(
inst: ICInstance,
hint: ConstStr255Param,
data: *const c_void,
len: c_long,
sel_start: *mut c_long,
sel_end: *mut c_long,
url: Handle,
) -> OSStatus;
}
extern "C-unwind" {
#[cfg(feature = "objc2-core-services")]
#[deprecated]
pub fn ICCreateGURLEvent(
inst: ICInstance,
helper_creator: OSType,
url_h: Handle,
the_event: *mut AppleEvent,
) -> OSStatus;
}
extern "C-unwind" {
#[cfg(feature = "objc2-core-services")]
#[deprecated]
pub fn ICSendGURLEvent(inst: ICInstance, the_event: *mut AppleEvent) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICMapFilename(
inst: ICInstance,
filename: ConstStr255Param,
entry: *mut ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICMapTypeCreator(
inst: ICInstance,
f_type: OSType,
f_creator: OSType,
filename: ConstStr255Param,
entry: *mut ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICMapEntriesFilename(
inst: ICInstance,
entries: Handle,
filename: ConstStr255Param,
entry: *mut ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICMapEntriesTypeCreator(
inst: ICInstance,
entries: Handle,
f_type: OSType,
f_creator: OSType,
filename: ConstStr255Param,
entry: *mut ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICCountMapEntries(inst: ICInstance, entries: Handle, count: *mut c_long) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetIndMapEntry(
inst: ICInstance,
entries: Handle,
index: c_long,
pos: *mut c_long,
entry: *mut ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetMapEntry(
inst: ICInstance,
entries: Handle,
pos: c_long,
entry: *mut ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICSetMapEntry(
inst: ICInstance,
entries: Handle,
pos: c_long,
entry: *const ICMapEntry,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICDeleteMapEntry(inst: ICInstance, entries: Handle, pos: c_long) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICAddMapEntry(inst: ICInstance, entries: Handle, entry: *const ICMapEntry) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetCurrentProfile(inst: ICInstance, current_id: *mut ICProfileID) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICSetCurrentProfile(inst: ICInstance, new_id: ICProfileID) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICCountProfiles(inst: ICInstance, count: *mut c_long) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICGetIndProfile(inst: ICInstance, index: c_long, this_id: *mut ICProfileID) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICSetProfileName(
inst: ICInstance,
this_id: ICProfileID,
name: ConstStr255Param,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICAddProfile(
inst: ICInstance,
prototype_id: ICProfileID,
new_id: *mut ICProfileID,
) -> OSStatus;
}
extern "C-unwind" {
#[deprecated]
pub fn ICDeleteProfile(inst: ICInstance, this_id: ICProfileID) -> OSStatus;
}