-
Notifications
You must be signed in to change notification settings - Fork 51
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
11 changed files
with
143 additions
and
9 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 `DiskArbitration` 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/diskarbitration/ | ||
//! [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-disk-arbitration/0.2.2")] | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate alloc; | ||
|
||
#[cfg(feature = "std")] | ||
extern crate std; | ||
|
||
mod generated; | ||
#[allow(unused_imports, unreachable_pub)] | ||
pub use self::generated::*; | ||
|
||
// MacTypes.h | ||
#[allow(dead_code)] | ||
pub(crate) type Boolean = u8; |
28 changes: 28 additions & 0 deletions
28
framework-crates/objc2-disk-arbitration/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,28 @@ | ||
framework = "DiskArbitration" | ||
crate = "objc2-disk-arbitration" | ||
required-crates = ["objc2-core-foundation"] | ||
custom-lib-rs = true | ||
macos = "10.4" | ||
maccatalyst = "13.0" | ||
|
||
# Needs io_service_t from IOKit | ||
fn.DADiskCreateFromIOMedia.skipped = true | ||
fn.DADiskCopyIOMedia.skipped = true | ||
|
||
# Uses `err_local` and `err_local_diskarbitration`, which | ||
# are not exposed by the `libc` crate. | ||
enum.anonymous.constants.kDAReturnError.use-value = true | ||
enum.anonymous.constants.kDAReturnBusy.use-value = true | ||
enum.anonymous.constants.kDAReturnBadArgument.use-value = true | ||
enum.anonymous.constants.kDAReturnExclusiveAccess.use-value = true | ||
enum.anonymous.constants.kDAReturnNoResources.use-value = true | ||
enum.anonymous.constants.kDAReturnNotFound.use-value = true | ||
enum.anonymous.constants.kDAReturnNotMounted.use-value = true | ||
enum.anonymous.constants.kDAReturnNotPermitted.use-value = true | ||
enum.anonymous.constants.kDAReturnNotPrivileged.use-value = true | ||
enum.anonymous.constants.kDAReturnNotReady.use-value = true | ||
enum.anonymous.constants.kDAReturnNotWritable.use-value = true | ||
enum.anonymous.constants.kDAReturnUnsupported.use-value = true | ||
|
||
# Needs dispatch_queue_t from libdispatch | ||
fn.DASessionSetDispatchQueue.skipped = true |
Submodule generated
updated
4 files
+346 −0 | DiskArbitration/DADisk.rs | |
+107 −0 | DiskArbitration/DADissenter.rs | |
+132 −0 | DiskArbitration/DASession.rs | |
+804 −0 | DiskArbitration/mod.rs |