aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/frontend.h8
-rw-r--r--src/jalv.c5
-rw-r--r--src/jalv_console.c10
-rw-r--r--src/jalv_gtk.c10
-rw-r--r--src/jalv_internal.h8
-rw-r--r--src/jalv_qt.cpp10
6 files changed, 26 insertions, 25 deletions
diff --git a/src/frontend.h b/src/frontend.h
index c0aa505..922707e 100644
--- a/src/frontend.h
+++ b/src/frontend.h
@@ -54,6 +54,14 @@ jalv_frontend_open(Jalv* jalv);
int
jalv_frontend_close(Jalv* jalv);
+/// Called when a port event (control change or other message) is sent to the UI
+void
+jalv_frontend_port_event(Jalv* jalv,
+ uint32_t port_index,
+ uint32_t buffer_size,
+ uint32_t protocol,
+ const void* buffer);
+
JALV_END_DECLS
#endif // JALV_UI_H
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);
diff --git a/src/jalv_console.c b/src/jalv_console.c
index 4c10e54..a3029fa 100644
--- a/src/jalv_console.c
+++ b/src/jalv_console.c
@@ -75,11 +75,11 @@ print_arg_error(const char* const command, const char* const msg)
}
void
-jalv_ui_port_event(Jalv* jalv,
- uint32_t port_index,
- uint32_t buffer_size,
- uint32_t protocol,
- const void* buffer)
+jalv_frontend_port_event(Jalv* jalv,
+ uint32_t port_index,
+ uint32_t buffer_size,
+ uint32_t protocol,
+ const void* buffer)
{
#if USE_SUIL
if (jalv->ui_instance) {
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c
index 9784420..ed718be 100644
--- a/src/jalv_gtk.c
+++ b/src/jalv_gtk.c
@@ -777,11 +777,11 @@ property_changed(Jalv* jalv, LV2_URID key, const LV2_Atom* value)
}
void
-jalv_ui_port_event(Jalv* jalv,
- uint32_t port_index,
- uint32_t buffer_size,
- uint32_t protocol,
- const void* buffer)
+jalv_frontend_port_event(Jalv* jalv,
+ uint32_t port_index,
+ uint32_t buffer_size,
+ uint32_t protocol,
+ const void* buffer)
{
if (jalv->ui_instance) {
suil_instance_port_event(
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 1eea246..d4606f5 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -156,14 +156,6 @@ jalv_ui_instantiate(Jalv* jalv, const char* native_ui_type, void* parent);
bool
jalv_ui_is_resizable(Jalv* jalv);
-/// Called when a port event (control change or other message) is sent to the UI
-void
-jalv_ui_port_event(Jalv* jalv,
- uint32_t port_index,
- uint32_t buffer_size,
- uint32_t protocol,
- const void* buffer);
-
/**
Write a port event using the atom:eventTransfer protocol.
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index ef29858..61cf3fb 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -612,11 +612,11 @@ jalv_frontend_ui_type(void)
}
void
-jalv_ui_port_event(Jalv* jalv,
- uint32_t port_index,
- uint32_t buffer_size,
- uint32_t protocol,
- const void* buffer)
+jalv_frontend_port_event(Jalv* jalv,
+ uint32_t port_index,
+ uint32_t buffer_size,
+ uint32_t protocol,
+ const void* buffer)
{
if (jalv->ui_instance) {
suil_instance_port_event(