diff options
author | David Robillard <d@drobilla.net> | 2022-08-10 13:01:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:50:58 -0400 |
commit | 32b02177111d9092fb87a3b496c75d242c4be9cb (patch) | |
tree | 74a6a6d8efc778cd831e45512fd41442e639fbae /src | |
parent | cc5527981ecc76398ec57097e79d5662e7b98151 (diff) | |
download | jalv-32b02177111d9092fb87a3b496c75d242c4be9cb.tar.gz jalv-32b02177111d9092fb87a3b496c75d242c4be9cb.tar.bz2 jalv-32b02177111d9092fb87a3b496c75d242c4be9cb.zip |
Make jalv_ui_port_index() private
Diffstat (limited to 'src')
-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, |