From 32b02177111d9092fb87a3b496c75d242c4be9cb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 10 Aug 2022 13:01:25 -0400 Subject: Make jalv_ui_port_index() private --- src/jalv.c | 20 +++++++++++--------- src/jalv_internal.h | 3 --- 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'src') 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, -- cgit v1.2.1