aboutsummaryrefslogtreecommitdiffstats
path: root/src/port.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-16 07:37:30 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:01:53 -0500
commit098ed3f15751b1e25f8a0149d49a78b2e1d3f881 (patch)
treec84f6f90b1ee65b1f8de371552e54fd24e19238d /src/port.h
parent4e4641d7923217d983ff37b46dcb3f6546843992 (diff)
downloadjalv-098ed3f15751b1e25f8a0149d49a78b2e1d3f881.tar.gz
jalv-098ed3f15751b1e25f8a0149d49a78b2e1d3f881.tar.bz2
jalv-098ed3f15751b1e25f8a0149d49a78b2e1d3f881.zip
Use a typedef for ports like other structs
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port.h b/src/port.h
index 7ca80b1..260c37a 100644
--- a/src/port.h
+++ b/src/port.h
@@ -18,7 +18,7 @@ enum PortFlow { FLOW_UNKNOWN, FLOW_INPUT, FLOW_OUTPUT };
enum PortType { TYPE_UNKNOWN, TYPE_CONTROL, TYPE_AUDIO, TYPE_EVENT, TYPE_CV };
-struct Port {
+typedef struct {
const LilvPort* lilv_port; ///< LV2 port
enum PortType type; ///< Data type
enum PortFlow flow; ///< Data flow direction
@@ -29,7 +29,7 @@ struct Port {
uint32_t index; ///< Port index
float control; ///< For control ports, otherwise 0.0f
bool reports_latency; ///< For control port outputs
-};
+} JalvPort;
JALV_END_DECLS