From e517361e4e9d8eae572a89a761a4def3ad8870eb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Nov 2024 09:27:02 -0500 Subject: 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. --- src/jalv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/jalv.c') diff --git a/src/jalv.c b/src/jalv.c index 44536e3..5c91791 100644 --- a/src/jalv.c +++ b/src/jalv.c @@ -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); -- cgit v1.2.1