diff options
author | David Robillard <d@drobilla.net> | 2024-11-15 09:27:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-17 14:40:27 -0500 |
commit | e517361e4e9d8eae572a89a761a4def3ad8870eb (patch) | |
tree | 358a62d8a3216e44470af988f528c2607626d7ed /src/jalv.c | |
parent | 3fdc8055b8c40b20c1fdd0cd27c954effd3fd0c3 (diff) | |
download | jalv-e517361e4e9d8eae572a89a761a4def3ad8870eb.tar.gz jalv-e517361e4e9d8eae572a89a761a4def3ad8870eb.tar.bz2 jalv-e517361e4e9d8eae572a89a761a4def3ad8870eb.zip |
Rename UI port event function and move it to the appropriate header
This isn't a "global" internal function like the others in jalv_internal.h, but
rather the prototype of a function that must be implemented by frontends.
Diffstat (limited to 'src/jalv.c')
-rw-r--r-- | src/jalv.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -607,7 +607,8 @@ jalv_init_ui(Jalv* jalv) // Set initial control port values for (uint32_t i = 0; i < jalv->num_ports; ++i) { if (jalv->ports[i].type == TYPE_CONTROL) { - jalv_ui_port_event(jalv, i, sizeof(float), 0, &jalv->ports[i].control); + jalv_frontend_port_event( + jalv, i, sizeof(float), 0, &jalv->ports[i].control); } } @@ -767,7 +768,7 @@ jalv_update(Jalv* jalv) jalv_dump_atom(jalv, stdout, "Plugin => UI", (const LV2_Atom*)buf, 35); } - jalv_ui_port_event(jalv, ev.index, ev.size, ev.protocol, buf); + jalv_frontend_port_event(jalv, ev.index, ev.size, ev.protocol, buf); if (ev.protocol == 0 && jalv->opts.print_controls) { jalv_print_control(jalv, &jalv->ports[ev.index], *(float*)buf); |