aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_console.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-06-26 21:11:25 +0200
committerDavid Robillard <d@drobilla.net>2020-04-05 09:39:56 +0200
commit1be0998815fff3d6264e32099c24eb08217ee25e (patch)
tree49c4a0c84b45314773d127df693f468eaf0a8e5d /src/jalv_console.c
parenta24204f887e2da295941576e676d31a77bd66583 (diff)
downloadjalv-1be0998815fff3d6264e32099c24eb08217ee25e.tar.gz
jalv-1be0998815fff3d6264e32099c24eb08217ee25e.tar.bz2
jalv-1be0998815fff3d6264e32099c24eb08217ee25e.zip
Support port events for ui:showInterface UIs
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r--src/jalv_console.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c
index 7b93f43..a97b388 100644
--- a/src/jalv_console.c
+++ b/src/jalv_console.c
@@ -50,12 +50,16 @@ print_usage(const char* name, bool error)
}
void
-jalv_ui_port_event(ZIX_UNUSED Jalv* jalv,
- ZIX_UNUSED uint32_t port_index,
- ZIX_UNUSED uint32_t buffer_size,
- ZIX_UNUSED uint32_t protocol,
- ZIX_UNUSED const void* buffer)
+jalv_ui_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(jalv->ui_instance, port_index,
+ buffer_size, protocol, buffer);
+ }
}
int