Skip to content

Commit

Permalink
Moved definition of MIKMIDIEventHandlerBlock from MIKMIDIInputPort to…
Browse files Browse the repository at this point in the history
… MIKMIDISourceEndpoint.
  • Loading branch information
Andrew Madsen committed Nov 6, 2015
1 parent 8e45828 commit 85af173
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Source/MIKMIDIInputPort.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
//

#import "MIKMIDIPort.h"
#import "MIKMIDISourceEndpoint.h"
#import "MIKMIDICompilerCompatibility.h"

@class MIKMIDIEndpoint;
@class MIKMIDISourceEndpoint;
@class MIKMIDICommand;

NS_ASSUME_NONNULL_BEGIN

typedef void(^MIKMIDIEventHandlerBlock)(MIKMIDISourceEndpoint *source, MIKArrayOf(MIKMIDICommand *) *commands); // commands in an array of MIKMIDICommands

/**
* MIKMIDIInputPort is an Objective-C wrapper for CoreMIDI's MIDIPort class, and is only for source ports.
* It is not intended for use by clients/users of of MIKMIDI. Rather, it should be thought of as an
Expand Down
16 changes: 16 additions & 0 deletions Source/MIKMIDISourceEndpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
//

#import "MIKMIDIEndpoint.h"
#import "MIKMIDICompilerCompatibility.h"

@class MIKMIDISourceEndpoint;
@class MIKMIDICommand;

NS_ASSUME_NONNULL_BEGIN

/**
* Block used by various MIKMIDI APIs that deliver incoming MIDI messages.
*
* @param source The source endpoint from which MIDI messagse were received.
* @param commands An NSArray containing received MIKMIDICommand instances.
*/
typedef void(^MIKMIDIEventHandlerBlock)(MIKMIDISourceEndpoint *source, MIKArrayOf(MIKMIDICommand *) *commands); // commands in an array of MIKMIDICommands

/**
* MIKMIDISourceEndpoint represents a source (input) MIDI endpoint.
Expand All @@ -26,3 +40,5 @@
@interface MIKMIDISourceEndpoint : MIKMIDIEndpoint

@end

NS_ASSUME_NONNULL_END

0 comments on commit 85af173

Please sign in to comment.