NOOP, add header-guards and namespace to CA backend
[ardour.git] / libs / backends / coreaudio / coremidi_io.h
index de4f9be0bb2aac01acc5ef96db9e1d1ea7952d67..b5eda1c2fdfeb666e4b4f62638ed4ca49d5e3774 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>
@@ -30,7 +33,9 @@
 #include <boost/shared_ptr.hpp>
 #include "pbd/ringbuffer.h"
 
-typedef struct _CoreMIDIPacket { 
+namespace ARDOUR {
+
+typedef struct _CoreMIDIPacket {
        MIDITimeStamp timeStamp; 
        UInt16 length; 
        Byte data[256]; 
@@ -74,6 +79,7 @@ public:
 
        uint32_t n_midi_inputs (void) const { return _n_midi_in; }
        uint32_t n_midi_outputs (void) const { return _n_midi_out; }
+       std::string port_id (uint32_t, bool input);
        std::string port_name (uint32_t, bool input);
 
        void notify_proc (const MIDINotification *message);
@@ -112,3 +118,7 @@ private:
 
        pthread_mutex_t _discovery_lock;
 };
+
+} // namespace
+
+#endif /* __libbackend_coremidi_io */