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/state.c | |
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/state.c')
-rw-r--r-- | src/state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/state.c b/src/state.c index 27be61c..e75ab3c 100644 --- a/src/state.c +++ b/src/state.c @@ -36,8 +36,8 @@ get_port_value(const char* port_symbol, uint32_t* size, uint32_t* type) { - Jalv* jalv = (Jalv*)user_data; - struct Port* port = jalv_port_by_symbol(jalv, port_symbol); + Jalv* const jalv = (Jalv*)user_data; + JalvPort* const port = jalv_port_by_symbol(jalv, port_symbol); if (port && port->flow == FLOW_INPUT && port->type == TYPE_CONTROL) { *size = sizeof(float); *type = jalv->forge.Float; @@ -124,8 +124,8 @@ set_port_value(const char* port_symbol, uint32_t ZIX_UNUSED(size), uint32_t type) { - Jalv* jalv = (Jalv*)user_data; - struct Port* port = jalv_port_by_symbol(jalv, port_symbol); + Jalv* const jalv = (Jalv*)user_data; + JalvPort* const port = jalv_port_by_symbol(jalv, port_symbol); if (!port) { jalv_log(JALV_LOG_ERR, "Preset port `%s' is missing\n", port_symbol); return; |