Skip to content

Commit 45f153b

Browse files
committed
Fix a few duplicate definitions
MIDIChannelNumber and ColorSyncProfile were duplicated across different frameworks.
1 parent 9cb0268 commit 45f153b

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ protocol.AUCocoaUIBase.methods."uiViewForAudioUnit:withSize:".skipped = true
110110

111111
# Value too large
112112
enum.anonymous.constants.AUEventSampleTimeImmediate.use-value = true
113+
114+
# Defined for real in CoreMIDI, AudioToolbox just redefines it
115+
typedef.MIDIChannelNumber.skipped = true
116+
external.MIDIChannelNumber.module = "CoreMIDI.MIDIMessages"

framework-crates/objc2-core-graphics/Cargo.toml

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework-crates/objc2-core-graphics/translation-config.toml

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ typedef.IOSurfaceRef.skipped = true
2323
struct.__IOSurface.skipped = true
2424
external.IOSurfaceRef.module = "IOSurface.IOSurfaceRef"
2525

26+
# Defined for real in ColorSync, CoreGraphics redefines it just for the
27+
# purpose of this function.
28+
typedef.ColorSyncProfileRef.skipped = true
29+
fn.CGColorSpaceCreateWithColorSyncProfile.skipped = true
30+
2631
# Needs io_service_t from the kernel
2732
fn.CGDisplayIOServicePort.skipped = true
2833

0 commit comments

Comments
 (0)