aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-17 08:36:25 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:04:19 -0500
commit57b544a5b036e671a516192dd2b4c2b84c37a3df (patch)
tree1e6ffe68d0e31f2767335ac2a10e229873474b26 /src
parent660d0e3591e6a972f5d4adfd7d0d3bf6cef566f9 (diff)
downloadjalv-57b544a5b036e671a516192dd2b4c2b84c37a3df.tar.gz
jalv-57b544a5b036e671a516192dd2b4c2b84c37a3df.tar.bz2
jalv-57b544a5b036e671a516192dd2b4c2b84c37a3df.zip
Move PortFlow and PortType definitions to types.h
Diffstat (limited to 'src')
-rw-r--r--src/port.h11
-rw-r--r--src/types.h12
2 files changed, 13 insertions, 10 deletions
diff --git a/src/port.h b/src/port.h
index 44f8411..6b5e522 100644
--- a/src/port.h
+++ b/src/port.h
@@ -6,6 +6,7 @@
#include "attributes.h"
#include "lv2_evbuf.h"
+#include "types.h"
#include "lilv/lilv.h"
@@ -14,16 +15,6 @@
JALV_BEGIN_DECLS
-typedef enum { FLOW_UNKNOWN, FLOW_INPUT, FLOW_OUTPUT } PortFlow;
-
-typedef enum {
- TYPE_UNKNOWN,
- TYPE_CONTROL,
- TYPE_AUDIO,
- TYPE_EVENT,
- TYPE_CV
-} PortType;
-
typedef struct {
const LilvPort* lilv_port; ///< LV2 port
PortType type; ///< Data type
diff --git a/src/types.h b/src/types.h
index f56ee14..dcb15c6 100644
--- a/src/types.h
+++ b/src/types.h
@@ -20,6 +20,18 @@ typedef struct JalvImpl Jalv;
/// Audio/MIDI backend
typedef struct JalvBackendImpl JalvBackend;
+/// Plugin port "direction"
+typedef enum { FLOW_UNKNOWN, FLOW_INPUT, FLOW_OUTPUT } PortFlow;
+
+/// Plugin port type
+typedef enum {
+ TYPE_UNKNOWN,
+ TYPE_CONTROL,
+ TYPE_AUDIO,
+ TYPE_EVENT,
+ TYPE_CV
+} PortType;
+
JALV_END_DECLS
#endif // JALV_TYPES_H