From b923c108aee585cbe71de83e639176d21b386d0a Mon Sep 17 00:00:00 2001 From: Birh Burh Date: Fri, 19 Jul 2024 03:13:42 +0200 Subject: [PATCH] Removed unused osx frameworks linkage --- src/native/apple/frameworks.rs | 57 ---------------------------------- src/native/ios.rs | 6 ---- 2 files changed, 63 deletions(-) diff --git a/src/native/apple/frameworks.rs b/src/native/apple/frameworks.rs index ec4b7dd3..15045c76 100644 --- a/src/native/apple/frameworks.rs +++ b/src/native/apple/frameworks.rs @@ -231,12 +231,6 @@ extern "C" { pub fn MTLCopyAllDevices() -> ObjcId; //TODO: Array } -#[link(name = "AVFoundation", kind = "framework")] -extern "C" { - pub static AVAudioUnitComponentManager: ObjcId; - pub static AVAudioUnit: ObjcId; -} - // Foundation #[repr(C)] @@ -1285,57 +1279,6 @@ pub struct MIDIEventPacket { pub words: [u32; 64usize], } -#[link(name = "CoreMidi", kind = "framework")] -extern "C" { - pub static kMIDIPropertyManufacturer: CFStringRef; - pub static kMIDIPropertyDisplayName: CFStringRef; - pub static kMIDIPropertyUniqueID: CFStringRef; - - pub fn MIDIGetNumberOfSources() -> ItemCount; - pub fn MIDIGetSource(sourceIndex0: ItemCount) -> MIDIEndpointRef; - - pub fn MIDIGetNumberOfDestinations() -> ItemCount; - pub fn MIDIGetDestination(sourceIndex0: ItemCount) -> MIDIEndpointRef; - - pub fn MIDIClientCreateWithBlock( - name: CFStringRef, - outClient: *mut MIDIClientRef, - notifyBlock: ObjcId, - ) -> OSStatus; - - pub fn MIDIInputPortCreateWithProtocol( - client: MIDIClientRef, - portName: CFStringRef, - protocol: MIDIProtocolID, - outPort: *mut MIDIPortRef, - receiveBlock: ObjcId, - ) -> OSStatus; - - pub fn MIDIOutputPortCreate( - client: MIDIClientRef, - portName: CFStringRef, - outPort: *mut MIDIPortRef, - ) -> OSStatus; - - pub fn MIDIObjectGetStringProperty( - obj: MIDIObjectRef, - propertyID: CFStringRef, - str_: *mut CFStringRef, - ) -> OSStatus; - - pub fn MIDIObjectGetIntegerProperty( - obj: MIDIObjectRef, - propertyID: CFStringRef, - outValue: *mut i32, - ) -> OSStatus; - - pub fn MIDIPortConnectSource( - port: MIDIPortRef, - source: MIDIEndpointRef, - connRefCon: *mut ::std::os::raw::c_void, - ) -> OSStatus; -} - pub const NSOpenGLContextParameterSwapInterval: i32 = 222; #[repr(u64)] diff --git a/src/native/ios.rs b/src/native/ios.rs index ad1fcfbf..f600430c 100644 --- a/src/native/ios.rs +++ b/src/native/ios.rs @@ -668,12 +668,6 @@ pub fn define_app_delegate() -> *const Class { YES } - #[cfg(target_os = "ios")] - #[link(name = "UIKit", kind = "framework")] - extern "C" { - pub static UIWindowSceneSessionRoleApplication: ObjcId; - } - extern "C" fn application_did_become_active(_: &Object, _: Sel, _: ObjcId) { send_message(Message::Resume); }