diff options
-rw-r--r-- | src/jalv.c | 20 | ||||
-rw-r--r-- | src/jalv_internal.h | 3 |
2 files changed, 11 insertions, 12 deletions
@@ -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, |