try just removing all PLATFORM_WINDOWS conditionals in ipmidi code to see if it will...
[ardour.git] / libs / backends / coreaudio / coremidi_io.h
index e74b495f7c783595d3cd56cdd6270d3246dffcd4..b09261cbf9c51f70bd18d881c1b83f715802170f 100644 (file)
@@ -16,6 +16,9 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifndef __libbackend_coremidi_io_h__
+#define __libbackend_coremidi_io_h__
+
 #include <CoreServices/CoreServices.h>
 #include <CoreAudio/CoreAudio.h>
 #include <AudioUnit/AudioUnit.h>
 #include <boost/shared_ptr.hpp>
 #include "pbd/ringbuffer.h"
 
-typedef struct _CoreMIDIPacket { 
-       MIDITimeStamp timeStamp; 
-       UInt16 length; 
-       Byte data[256]; 
+namespace ARDOUR {
+
+typedef struct _CoreMIDIPacket {
+       MIDITimeStamp timeStamp;
+       UInt16 length;
+       Byte data[256];
 #if 0 // unused
        _CoreMIDIPacket (MIDITimeStamp t, Byte *d, UInt16 l)
                : timeStamp(t)
@@ -47,7 +52,7 @@ typedef struct _CoreMIDIPacket {
                }
        }
 #endif
-       _CoreMIDIPacket (const MIDIPacket *other) 
+       _CoreMIDIPacket (const MIDIPacket *other)
                : timeStamp(other->timeStamp)
                , length (other->length)
        {
@@ -70,6 +75,7 @@ public:
        void start_cycle ();
 
        int send_event (uint32_t, double, const uint8_t *, const size_t);
+       int send_events (uint32_t, double, const void *);
        size_t recv_event (uint32_t, double, uint64_t &, uint8_t *, size_t &);
 
        uint32_t n_midi_inputs (void) const { return _n_midi_in; }
@@ -113,3 +119,7 @@ private:
 
        pthread_mutex_t _discovery_lock;
 };
+
+} // namespace
+
+#endif /* __libbackend_coremidi_io */