summaryrefslogtreecommitdiff
path: root/libs/midi++2/midi++/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/midi++2/midi++/port.h')
-rw-r--r--libs/midi++2/midi++/port.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libs/midi++2/midi++/port.h b/libs/midi++2/midi++/port.h
index f16743337c..5a52cfe898 100644
--- a/libs/midi++2/midi++/port.h
+++ b/libs/midi++2/midi++/port.h
@@ -22,15 +22,16 @@
#include <string>
#include <iostream>
-#include <jack/types.h> /* XXX ... desirable to get rid of this but needed for
- * now due to use of JackPortIsXXXX
- */
+#include <pthread.h>
#include "pbd/xml++.h"
+#ifndef PLATFORM_WINDOWS
#include "pbd/crossthread.h"
+#endif
#include "pbd/signals.h"
#include "pbd/ringbuffer.h"
+#include "midi++/libmidi_visibility.h"
#include "midi++/types.h"
#include "midi++/parser.h"
@@ -39,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);
@@ -138,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;