objc2_core_midi/
lib.rs

1//! # Bindings to the `CoreMIDI` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! [apple-doc]: https://developer.apple.com/documentation/coremidi/
6//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7#![no_std]
8#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))]
9#![cfg_attr(docsrs, feature(doc_cfg))]
10// Update in Cargo.toml as well.
11#![doc(html_root_url = "https://docs.rs/objc2-core-midi/0.3.2")]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15
16#[cfg(feature = "std")]
17extern crate std;
18
19mod generated;
20#[allow(unused_imports, unreachable_pub)]
21pub use self::generated::*;
22
23// MacTypes.h
24#[allow(dead_code)]
25pub(crate) type Boolean = u8;
26#[allow(dead_code)]
27pub(crate) type OSStatus = i32;
28#[allow(dead_code)]
29pub(crate) type Byte = u8;
30#[allow(dead_code)]
31pub(crate) type ByteCount = core::ffi::c_ulong;
32#[allow(dead_code)]
33pub(crate) type ItemCount = core::ffi::c_ulong;