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;
}