summaryrefslogtreecommitdiffstats
path: root/third_party/rust/core-foundation-sys/src/mach_port.rs
blob: 2341fd4e74d18e0e228749e42240325696ec8dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub use base::{CFAllocatorRef, CFIndex, CFTypeID};
use runloop::CFRunLoopSourceRef;
use std::os::raw::c_void;

#[repr(C)]
pub struct __CFMachPort(c_void);
pub type CFMachPortRef = *const __CFMachPort;

extern "C" {
    /*
     * CFMachPort.h
     */
    pub fn CFMachPortCreateRunLoopSource(
        allocator: CFAllocatorRef,
        port: CFMachPortRef,
        order: CFIndex,
    ) -> CFRunLoopSourceRef;
    
    pub fn CFMachPortGetTypeID() -> CFTypeID;
}