-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace internal declarations with those from objc2-core-bluetooth
- Loading branch information
Showing
9 changed files
with
351 additions
and
679 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
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,19 @@ | ||
#![allow(non_camel_case_types)] | ||
use std::os::raw::{c_char, c_void}; | ||
|
||
pub type dispatch_object_s = c_void; | ||
pub type dispatch_queue_t = *mut dispatch_object_s; | ||
pub type dispatch_queue_attr_t = *const dispatch_object_s; | ||
|
||
pub const DISPATCH_QUEUE_SERIAL: dispatch_queue_attr_t = 0 as dispatch_queue_attr_t; | ||
|
||
extern "C" { | ||
pub fn dispatch_queue_create( | ||
label: *const c_char, | ||
attr: dispatch_queue_attr_t, | ||
) -> dispatch_queue_t; | ||
} | ||
|
||
// TODO: Do we need to link to AppKit here? | ||
#[cfg_attr(target_os = "macos", link(name = "AppKit", kind = "framework"))] | ||
extern "C" {} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.