objc2-core-services 0.3.2

Bindings to the CoreServices framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/keyreplyportattr?language=objc)
#[cfg(feature = "AEDataModel")]
pub const keyReplyPortAttr: AEKeyword = 0x72657070;

/// [Apple's documentation](https://developer.apple.com/documentation/coreservices/typereplyportattr?language=objc)
#[cfg(feature = "AEDataModel")]
pub const typeReplyPortAttr: DescType = keyReplyPortAttr;

extern "C-unwind" {
    #[cfg(feature = "libc")]
    pub fn AEGetRegisteredMachPort() -> libc::mach_port_t;
}

extern "C-unwind" {
    /// # Safety
    ///
    /// - `event` must be a valid pointer.
    /// - `reply` must be a valid pointer.
    #[cfg(feature = "AEDataModel")]
    pub fn AESendMessage(
        event: *const AppleEvent,
        reply: *mut AppleEvent,
        send_mode: AESendMode,
        time_out_in_ticks: c_long,
    ) -> OSStatus;
}