-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
239 additions
and
12 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//! # Bindings to the `CoreAudioKit` framework | ||
//! | ||
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information. | ||
//! | ||
//! [apple-doc]: https://developer.apple.com/documentation/coreaudiokit/ | ||
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html | ||
#![no_std] | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
// Update in Cargo.toml as well. | ||
#![doc(html_root_url = "https://docs.rs/objc2-core-audio-kit/0.3.0")] | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate alloc; | ||
|
||
#[cfg(feature = "std")] | ||
extern crate std; | ||
|
||
mod generated; | ||
#[allow(unused_imports, unreachable_pub)] | ||
pub use self::generated::*; | ||
|
||
mod view_controller; | ||
#[allow(unused_imports, unreachable_pub)] | ||
pub use self::view_controller::*; |
25 changes: 25 additions & 0 deletions
25
framework-crates/objc2-core-audio-kit/src/view_controller.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#![allow(unused_imports)] | ||
|
||
use objc2::extern_class; | ||
#[cfg(feature = "objc2-app-kit")] | ||
#[cfg(target_os = "macos")] | ||
use objc2_app_kit::{NSResponder, NSViewController}; | ||
use objc2_foundation::NSObject; | ||
|
||
extern_class!( | ||
/// [Apple's documentation](https://developer.apple.com/documentation/coreaudiokit/augenericviewcontroller?language=objc) | ||
#[unsafe(super(NSViewController, NSResponder, NSObject))] | ||
#[derive(Debug, PartialEq, Eq, Hash)] | ||
#[cfg(feature = "objc2-app-kit")] | ||
#[cfg(target_os = "macos")] | ||
pub struct AUGenericViewController; | ||
); | ||
|
||
extern_class!( | ||
/// [Apple's documentation](https://developer.apple.com/documentation/coreaudiokit/auviewcontroller?language=objc) | ||
#[unsafe(super(NSViewController, NSResponder, NSObject))] | ||
#[derive(Debug, PartialEq, Eq, Hash)] | ||
#[cfg(feature = "objc2-app-kit")] | ||
#[cfg(target_os = "macos")] | ||
pub struct AUViewController; | ||
); |
13 changes: 13 additions & 0 deletions
13
framework-crates/objc2-core-audio-kit/translation-config.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
framework = "CoreAudioKit" | ||
crate = "objc2-core-audio-kit" | ||
required-crates = ["objc2", "objc2-foundation"] | ||
custom-lib-rs = true | ||
macos = "10.4" | ||
maccatalyst = "13.0" | ||
ios = "8.0" | ||
visionos = "1.0" | ||
|
||
# The original superclass typedef is a bit difficult to extract from the | ||
# superclass name, so let's do it manually. | ||
class.AUViewController.definition-skipped = true | ||
class.AUGenericViewController.definition-skipped = true |
Submodule generated
updated
9 files