Skip to content

Commit

Permalink
Removed unused osx frameworks linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
birhburh authored and not-fl3 committed Jul 19, 2024
1 parent 8936ebe commit b923c10
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 63 deletions.
57 changes: 0 additions & 57 deletions src/native/apple/frameworks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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)]
Expand Down
6 changes: 0 additions & 6 deletions src/native/ios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b923c10

Please sign in to comment.