diff options
author | David Robillard <d@drobilla.net> | 2024-11-16 07:37:30 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:01:53 -0500 |
commit | 098ed3f15751b1e25f8a0149d49a78b2e1d3f881 (patch) | |
tree | c84f6f90b1ee65b1f8de371552e54fd24e19238d /src/port.h | |
parent | 4e4641d7923217d983ff37b46dcb3f6546843992 (diff) | |
download | jalv-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |