remove inclusion of jack.h so that we can build on a platform without JACK
[ardour.git] / libs / midi++2 / midi++ / port.h
index a915320fa366bc3c6ea199cb9a465e23e95bb949..5a52cfe898fe97b1adc39be538bb173ee5e3c2a6 100644 (file)
@@ -22,8 +22,6 @@
 #include <string>
 #include <iostream>
 
-#include <jack/types.h>
-
 #include <pthread.h>
 
 #include "pbd/xml++.h"
@@ -33,6 +31,7 @@
 #include "pbd/signals.h"
 #include "pbd/ringbuffer.h"
 
+#include "midi++/libmidi_visibility.h"
 #include "midi++/types.h"
 #include "midi++/parser.h"
 
@@ -41,11 +40,11 @@ namespace MIDI {
 class Channel;
 class PortRequest;
 
-class Port {
+class LIBMIDIPP_API Port {
   public:
        enum Flags {
-               IsInput = JackPortIsInput,
-               IsOutput = JackPortIsOutput,
+               IsInput = 0x1,  /* MUST MATCH JACK's JackPortIsInput */
+               IsOutput = 0x2, /* MUST MATCH JACK's JackPortIsOutput */
        };
        
        Port (std::string const &, Flags);
@@ -140,7 +139,7 @@ class Port {
        void init (std::string const &, Flags);
 };
 
-struct PortSet {
+struct LIBMIDIPP_API PortSet {
     PortSet (std::string str) : owner (str) { }
     
     std::string owner;