Skip to content

Commit

Permalink
Fix a few duplicate definitions
Browse files Browse the repository at this point in the history
MIDIChannelNumber and ColorSyncProfile were duplicated across different
frameworks.
  • Loading branch information
madsmtm committed Jan 16, 2025
1 parent 9cb0268 commit 45f153b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions framework-crates/objc2-audio-toolbox/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,7 @@ protocol.AUCocoaUIBase.methods."uiViewForAudioUnit:withSize:".skipped = true

# Value too large
enum.anonymous.constants.AUEventSampleTimeImmediate.use-value = true

# Defined for real in CoreMIDI, AudioToolbox just redefines it
typedef.MIDIChannelNumber.skipped = true
external.MIDIChannelNumber.module = "CoreMIDI.MIDIMessages"
1 change: 0 additions & 1 deletion framework-crates/objc2-core-graphics/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions framework-crates/objc2-core-graphics/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ typedef.IOSurfaceRef.skipped = true
struct.__IOSurface.skipped = true
external.IOSurfaceRef.module = "IOSurface.IOSurfaceRef"

# Defined for real in ColorSync, CoreGraphics redefines it just for the
# purpose of this function.
typedef.ColorSyncProfileRef.skipped = true
fn.CGColorSpaceCreateWithColorSyncProfile.skipped = true

# Needs io_service_t from the kernel
fn.CGDisplayIOServicePort.skipped = true

Expand Down
2 changes: 1 addition & 1 deletion generated

0 comments on commit 45f153b

Please sign in to comment.