aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jalv.c20
-rw-r--r--src/jalv_internal.h3
2 files changed, 11 insertions, 12 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 98b4b86..4655785 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -410,6 +410,17 @@ jalv_set_control(Jalv* jalv,
}
}
+#if USE_SUIL
+static uint32_t
+jalv_ui_port_index(void* const controller, const char* symbol)
+{
+ Jalv* const jalv = (Jalv*)controller;
+ struct Port* port = jalv_port_by_symbol(jalv, symbol);
+
+ return port ? port->index : LV2UI_INVALID_PORT_INDEX;
+}
+#endif
+
void
jalv_ui_instantiate(Jalv* jalv, const char* native_ui_type, void* parent)
{
@@ -556,15 +567,6 @@ jalv_apply_ui_events(Jalv* jalv, uint32_t nframes)
}
}
-uint32_t
-jalv_ui_port_index(void* const controller, const char* symbol)
-{
- Jalv* const jalv = (Jalv*)controller;
- struct Port* port = jalv_port_by_symbol(jalv, symbol);
-
- return port ? port->index : LV2UI_INVALID_PORT_INDEX;
-}
-
void
jalv_init_ui(Jalv* jalv)
{
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 03b46f3..e83585c 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -168,9 +168,6 @@ jalv_ui_write(void* jalv_handle,
void
jalv_apply_ui_events(Jalv* jalv, uint32_t nframes);
-uint32_t
-jalv_ui_port_index(void* controller, const char* symbol);
-
void
jalv_ui_port_event(Jalv* jalv,
uint32_t port_index,