From 57b544a5b036e671a516192dd2b4c2b84c37a3df Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Nov 2024 08:36:25 -0500 Subject: Move PortFlow and PortType definitions to types.h --- src/port.h | 11 +---------- src/types.h | 12 ++++++++++++ 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 -- cgit v1.2.1