Skip to content

Commit 91a74f3

Browse files
committed
Use dispatch2 in framework crates
Part of #77. Fixes #699.
1 parent a6b29cd commit 91a74f3

File tree

79 files changed

+265
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+265
-230
lines changed

Cargo.lock

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/dispatch2/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ impl From<QualityOfServiceClass> for dispatch_qos_class_t {
104104
}
105105

106106
pub use self::data::DispatchData;
107+
pub use self::ffi::dispatch_block_t;
107108
pub use self::group::{DispatchGroup, DispatchGroupGuard};
108109
pub use self::io::DispatchIO;
109110
#[cfg(feature = "objc2")]

crates/objc2/src/topics/about_generated/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
102102
* Added `CFString::as_str_unchecked`.
103103
* Added a few compatibility aliases to help with migrating from the
104104
`core-foundation` crate.
105+
* Added support for using `dispatch2` types in framework crates.
105106

106107
### Changed
107108
* Made `CFArray`, `CFBag`, `CFBinaryHeap`, `CFDictionary`, `CFSet` and their

framework-crates/objc2-ar-kit/Cargo.toml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-ar-kit/translation-config.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ visionos = "1.0"
99
class.ARReferenceImage.methods."initWithCGImage:orientation:physicalWidth:".skipped = true
1010
class.ARReferenceImage.methods."initWithPixelBuffer:orientation:physicalWidth:".skipped = true
1111

12-
# Needs dispatch_queue_t from libdispatch
13-
class.ARSession.methods.delegateQueue.skipped = true
14-
class.ARSession.methods."setDelegateQueue:".skipped = true
15-
1612
# Needs QLPreviewItem from QuickLook
1713
class.ARQuickLookPreviewItem.skipped-protocols = ["QLPreviewItem"]
1814

framework-crates/objc2-audio-toolbox/Cargo.toml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-audio-toolbox/translation-config.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef.AudioUnitScheduleParametersProc.skipped = true
4444
struct.AudioUnitEvent.skipped = true
4545
typedef.AudioUnitEvent.skipped = true
4646
typedef.AUEventListenerBlock.skipped = true
47+
fn.AUEventListenerCreateWithDispatchQueue.skipped = true
4748
typedef.AUEventListenerProc.skipped = true
4849
fn.AUEventListenerCreate.skipped = true
4950
fn.AUEventListenerAddEventType.skipped = true
@@ -79,13 +80,7 @@ fn.GetNameFromSoundBank.skipped = true
7980
fn.MusicSequenceLoadSMFWithFlags.skipped = true
8081
fn.MusicSequenceSaveMIDIFile.skipped = true
8182

82-
# Needs dispatch_queue_t from libdispatch
83-
fn.AudioQueueNewOutputWithDispatchQueue.skipped = true
84-
fn.AudioQueueNewInputWithDispatchQueue.skipped = true
85-
fn.AUListenerCreateWithDispatchQueue.skipped = true
86-
fn.AUEventListenerCreateWithDispatchQueue.skipped = true
87-
88-
# Needs os_workgroup_t from libdispatch
83+
# Needs os_workgroup_t
8984
class.AUAudioUnit.methods.osWorkgroup.skipped = true
9085
struct.AudioUnitRenderContext.skipped = true
9186
typedef.AudioUnitRenderContext.skipped = true

0 commit comments

Comments
 (0)