use core::ffi::*;
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-foundation")]
use objc2_foundation::*;
use crate::*;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct MIDICIDeviceIdentification {
pub manufacturer: [u8; 3],
pub family: [u8; 2],
pub modelNumber: [u8; 2],
pub revisionLevel: [u8; 4],
pub reserved: [u8; 5],
}
#[cfg(feature = "objc2")]
unsafe impl Encode for MIDICIDeviceIdentification {
const ENCODING: Encoding = Encoding::Struct(
"MIDICIDeviceIdentification",
&[
<[u8; 3]>::ENCODING,
<[u8; 2]>::ENCODING,
<[u8; 2]>::ENCODING,
<[u8; 4]>::ENCODING,
<[u8; 5]>::ENCODING,
],
);
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for MIDICIDeviceIdentification {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "MIDIMessages")]
pub static MIDIChannelsWholePort: MIDIChannelNumber = 0x7f;
#[cfg(feature = "objc2-foundation")]
pub type MIDICIInitiatiorMUID = NSNumber;
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
pub type MIDICIProfileStateList = NSArray<MIDICIProfileState>;
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
#[deprecated = "No longer supported for CoreMIDI"]
pub struct MIDICIDeviceInfo;
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSCoding for MIDICIDeviceInfo {}
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICIDeviceInfo {}
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSSecureCoding for MIDICIDeviceInfo {}
);
#[cfg(feature = "objc2")]
impl MIDICIDeviceInfo {
extern_methods!(
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(manufacturerID))]
#[unsafe(method_family = none)]
pub unsafe fn manufacturerID(&self) -> Retained<NSData>;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(family))]
#[unsafe(method_family = none)]
pub unsafe fn family(&self) -> Retained<NSData>;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(modelNumber))]
#[unsafe(method_family = none)]
pub unsafe fn modelNumber(&self) -> Retained<NSData>;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(revisionLevel))]
#[unsafe(method_family = none)]
pub unsafe fn revisionLevel(&self) -> Retained<NSData>;
#[cfg(feature = "MIDIServices")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(midiDestination))]
#[unsafe(method_family = none)]
pub unsafe fn midiDestination(&self) -> MIDIEndpointRef;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(all(feature = "MIDIServices", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(initWithDestination:manufacturer:family:model:revision:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDestination_manufacturer_family_model_revision(
this: Allocated<Self>,
midi_destination: MIDIEntityRef,
manufacturer: &NSData,
family: &NSData,
model_number: &NSData,
revision_level: &NSData,
) -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
impl MIDICIDeviceInfo {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
#[deprecated = "No longer supported for CoreMIDI"]
pub struct MIDICIDiscoveredNode;
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSCoding for MIDICIDiscoveredNode {}
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICIDiscoveredNode {}
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSSecureCoding for MIDICIDiscoveredNode {}
);
#[cfg(feature = "objc2")]
impl MIDICIDiscoveredNode {
extern_methods!(
#[cfg(feature = "MIDIServices")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(destination))]
#[unsafe(method_family = none)]
pub unsafe fn destination(&self) -> MIDIEntityRef;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(deviceInfo))]
#[unsafe(method_family = none)]
pub unsafe fn deviceInfo(&self) -> Retained<MIDICIDeviceInfo>;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(supportsProfiles))]
#[unsafe(method_family = none)]
pub unsafe fn supportsProfiles(&self) -> bool;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(supportsProperties))]
#[unsafe(method_family = none)]
pub unsafe fn supportsProperties(&self) -> bool;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(maximumSysExSize))]
#[unsafe(method_family = none)]
pub unsafe fn maximumSysExSize(&self) -> Retained<NSNumber>;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
impl MIDICIDiscoveredNode {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
pub struct MIDICIProfile;
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSCoding for MIDICIProfile {}
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICIProfile {}
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSSecureCoding for MIDICIProfile {}
);
#[cfg(feature = "objc2")]
impl MIDICIProfile {
extern_methods!(
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(name))]
#[unsafe(method_family = none)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(profileID))]
#[unsafe(method_family = none)]
pub unsafe fn profileID(&self) -> Retained<NSData>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(initWithData:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithData(this: Allocated<Self>, data: &NSData) -> Retained<Self>;
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(initWithData:name:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithData_name(
this: Allocated<Self>,
data: &NSData,
in_name: &NSString,
) -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
impl MIDICIProfile {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
pub struct MIDICIProfileState;
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSCoding for MIDICIProfileState {}
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICIProfileState {}
);
#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
extern_conformance!(
unsafe impl NSSecureCoding for MIDICIProfileState {}
);
#[cfg(feature = "objc2")]
impl MIDICIProfileState {
extern_methods!(
#[cfg(feature = "MIDIMessages")]
#[unsafe(method(midiChannel))]
#[unsafe(method_family = none)]
pub unsafe fn midiChannel(&self) -> MIDIChannelNumber;
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(enabledProfiles))]
#[unsafe(method_family = none)]
pub unsafe fn enabledProfiles(&self) -> Retained<NSArray<MIDICIProfile>>;
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(disabledProfiles))]
#[unsafe(method_family = none)]
pub unsafe fn disabledProfiles(&self) -> Retained<NSArray<MIDICIProfile>>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(all(feature = "MIDIMessages", feature = "objc2-foundation"))]
#[deprecated]
#[unsafe(method(initWithChannel:enabledProfiles:disabledProfiles:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithChannel_enabledProfiles_disabledProfiles(
this: Allocated<Self>,
midi_channel_num: MIDIChannelNumber,
enabled: &NSArray<MIDICIProfile>,
disabled: &NSArray<MIDICIProfile>,
) -> Retained<Self>;
#[cfg(feature = "objc2-foundation")]
#[unsafe(method(initWithEnabledProfiles:disabledProfiles:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithEnabledProfiles_disabledProfiles(
this: Allocated<Self>,
enabled: &NSArray<MIDICIProfile>,
disabled: &NSArray<MIDICIProfile>,
) -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
impl MIDICIProfileState {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
#[deprecated = "No longer supported for CoreMIDI"]
#[cfg(all(feature = "MIDIMessages", feature = "block2", feature = "objc2"))]
pub type MIDICIProfileChangedBlock = *mut block2::DynBlock<
dyn Fn(NonNull<MIDICISession>, MIDIChannelNumber, NonNull<MIDICIProfile>, Bool),
>;
#[deprecated = "No longer supported for CoreMIDI"]
#[cfg(all(feature = "block2", feature = "objc2", feature = "objc2-foundation"))]
pub type MIDICISessionDisconnectBlock =
*mut block2::DynBlock<dyn Fn(NonNull<MIDICISession>, NonNull<NSError>)>;
#[deprecated = "No longer supported for CoreMIDI"]
#[cfg(all(
feature = "MIDIMessages",
feature = "block2",
feature = "objc2",
feature = "objc2-foundation"
))]
pub type MIDICIProfileSpecificDataBlock = *mut block2::DynBlock<
dyn Fn(NonNull<MIDICISession>, MIDIChannelNumber, NonNull<MIDICIProfile>, NonNull<NSData>),
>;
#[deprecated = "No longer supported for CoreMIDI"]
#[cfg(all(feature = "block2", feature = "objc2", feature = "objc2-foundation"))]
pub type MIDICIDiscoveryResponseBlock =
*mut block2::DynBlock<dyn Fn(NonNull<NSArray<MIDICIDiscoveredNode>>)>;
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
#[deprecated = "No longer supported for CoreMIDI"]
pub struct MIDICISession;
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICISession {}
);
#[cfg(feature = "objc2")]
impl MIDICISession {
extern_methods!(
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(all(feature = "block2", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(initWithDiscoveredNode:dataReadyHandler:disconnectHandler:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDiscoveredNode_dataReadyHandler_disconnectHandler(
this: Allocated<Self>,
discovered_node: &MIDICIDiscoveredNode,
handler: &block2::DynBlock<dyn Fn()>,
disconnect_handler: MIDICISessionDisconnectBlock,
) -> Retained<Self>;
#[cfg(feature = "MIDIServices")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(midiDestination))]
#[unsafe(method_family = none)]
pub unsafe fn midiDestination(&self) -> MIDIEntityRef;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(supportsProfileCapability))]
#[unsafe(method_family = none)]
pub unsafe fn supportsProfileCapability(&self) -> bool;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(supportsPropertyCapability))]
#[unsafe(method_family = none)]
pub unsafe fn supportsPropertyCapability(&self) -> bool;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(deviceInfo))]
#[unsafe(method_family = none)]
pub unsafe fn deviceInfo(&self) -> Retained<MIDICIDeviceInfo>;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(maxSysExSize))]
#[unsafe(method_family = none)]
pub unsafe fn maxSysExSize(&self) -> Retained<NSNumber>;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(maxPropertyRequests))]
#[unsafe(method_family = none)]
pub unsafe fn maxPropertyRequests(&self) -> Retained<NSNumber>;
#[cfg(feature = "MIDIMessages")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(profileStateForChannel:))]
#[unsafe(method_family = none)]
pub unsafe fn profileStateForChannel(
&self,
channel: MIDIChannelNumber,
) -> Retained<MIDICIProfileState>;
#[cfg(all(feature = "MIDIMessages", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(enableProfile:onChannel:error:_))]
#[unsafe(method_family = none)]
pub unsafe fn enableProfile_onChannel_error(
&self,
profile: &MIDICIProfile,
channel: MIDIChannelNumber,
) -> Result<(), Retained<NSError>>;
#[cfg(all(feature = "MIDIMessages", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(disableProfile:onChannel:error:_))]
#[unsafe(method_family = none)]
pub unsafe fn disableProfile_onChannel_error(
&self,
profile: &MIDICIProfile,
channel: MIDIChannelNumber,
) -> Result<(), Retained<NSError>>;
#[cfg(all(feature = "MIDIMessages", feature = "objc2-foundation"))]
#[unsafe(method(sendProfile:onChannel:profileData:))]
#[unsafe(method_family = none)]
pub unsafe fn sendProfile_onChannel_profileData(
&self,
profile: &MIDICIProfile,
channel: MIDIChannelNumber,
profile_specific_data: &NSData,
) -> bool;
#[cfg(all(feature = "MIDIMessages", feature = "block2"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(profileChangedCallback))]
#[unsafe(method_family = none)]
pub unsafe fn profileChangedCallback(&self) -> MIDICIProfileChangedBlock;
#[cfg(all(feature = "MIDIMessages", feature = "block2"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(setProfileChangedCallback:))]
#[unsafe(method_family = none)]
pub unsafe fn setProfileChangedCallback(
&self,
profile_changed_callback: MIDICIProfileChangedBlock,
);
#[cfg(all(
feature = "MIDIMessages",
feature = "block2",
feature = "objc2-foundation"
))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(profileSpecificDataHandler))]
#[unsafe(method_family = none)]
pub unsafe fn profileSpecificDataHandler(&self) -> MIDICIProfileSpecificDataBlock;
#[cfg(all(
feature = "MIDIMessages",
feature = "block2",
feature = "objc2-foundation"
))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(setProfileSpecificDataHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn setProfileSpecificDataHandler(
&self,
profile_specific_data_handler: MIDICIProfileSpecificDataBlock,
);
);
}
#[cfg(feature = "objc2")]
impl MIDICISession {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
#[deprecated = "No longer supported for CoreMIDI"]
pub struct MIDICIDiscoveryManager;
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICIDiscoveryManager {}
);
#[cfg(feature = "objc2")]
impl MIDICIDiscoveryManager {
extern_methods!(
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(sharedInstance))]
#[unsafe(method_family = none)]
pub unsafe fn sharedInstance() -> Retained<MIDICIDiscoveryManager>;
#[cfg(all(feature = "block2", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(discoverWithHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn discoverWithHandler(&self, completed_handler: MIDICIDiscoveryResponseBlock);
);
}
#[cfg(feature = "objc2")]
impl MIDICIDiscoveryManager {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
extern_protocol!(
#[cfg(feature = "objc2")]
#[deprecated = "No longer supported for CoreMIDI"]
pub unsafe trait MIDICIProfileResponderDelegate: NSObjectProtocol {
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(connectInitiator:withDeviceInfo:))]
#[unsafe(method_family = none)]
unsafe fn connectInitiator_withDeviceInfo(
&self,
initiator_muid: &MIDICIInitiatiorMUID,
device_info: &MIDICIDeviceInfo,
) -> bool;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(initiatorDisconnected:))]
#[unsafe(method_family = none)]
unsafe fn initiatorDisconnected(&self, initiator_muid: &MIDICIInitiatiorMUID);
#[cfg(feature = "MIDIMessages")]
#[deprecated = "No longer supported for CoreMIDI"]
#[optional]
#[unsafe(method(willSetProfile:onChannel:enabled:))]
#[unsafe(method_family = none)]
unsafe fn willSetProfile_onChannel_enabled(
&self,
a_profile: &MIDICIProfile,
channel: MIDIChannelNumber,
should_enable: bool,
) -> bool;
#[cfg(all(feature = "MIDIMessages", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[optional]
#[unsafe(method(handleDataForProfile:onChannel:data:))]
#[unsafe(method_family = none)]
unsafe fn handleDataForProfile_onChannel_data(
&self,
a_profile: &MIDICIProfile,
channel: MIDIChannelNumber,
in_data: &NSData,
);
}
);
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
#[deprecated = "No longer supported for CoreMIDI"]
pub struct MIDICIResponder;
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for MIDICIResponder {}
);
#[cfg(feature = "objc2")]
impl MIDICIResponder {
extern_methods!(
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(initiators))]
#[unsafe(method_family = none)]
pub unsafe fn initiators(&self) -> Retained<NSArray<MIDICIInitiatiorMUID>>;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(profileDelegate))]
#[unsafe(method_family = none)]
pub unsafe fn profileDelegate(
&self,
) -> Retained<ProtocolObject<dyn MIDICIProfileResponderDelegate>>;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(deviceInfo))]
#[unsafe(method_family = none)]
pub unsafe fn deviceInfo(&self) -> Retained<MIDICIDeviceInfo>;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "objc2-foundation")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(initWithDeviceInfo:profileDelegate:profileStates:supportProperties:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDeviceInfo_profileDelegate_profileStates_supportProperties(
this: Allocated<Self>,
device_info: &MIDICIDeviceInfo,
delegate: &ProtocolObject<dyn MIDICIProfileResponderDelegate>,
profile_list: &MIDICIProfileStateList,
properties_supported: bool,
) -> Retained<Self>;
#[cfg(feature = "MIDIMessages")]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(notifyProfile:onChannel:isEnabled:))]
#[unsafe(method_family = none)]
pub unsafe fn notifyProfile_onChannel_isEnabled(
&self,
a_profile: &MIDICIProfile,
channel: MIDIChannelNumber,
enabled_state: bool,
) -> bool;
#[cfg(all(feature = "MIDIMessages", feature = "objc2-foundation"))]
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(sendProfile:onChannel:profileData:))]
#[unsafe(method_family = none)]
pub unsafe fn sendProfile_onChannel_profileData(
&self,
a_profile: &MIDICIProfile,
channel: MIDIChannelNumber,
profile_specific_data: &NSData,
) -> bool;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(start))]
#[unsafe(method_family = none)]
pub unsafe fn start(&self) -> bool;
#[deprecated = "No longer supported for CoreMIDI"]
#[unsafe(method(stop))]
#[unsafe(method_family = none)]
pub unsafe fn stop(&self);
);
}
#[cfg(feature = "objc2")]
impl MIDICIResponder {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}