diff options
author | David Robillard <d@drobilla.net> | 2022-08-08 18:33:30 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:50:46 -0400 |
commit | 94271414197f2bc758076811d6d31c0771848394 (patch) | |
tree | 7fe8de17fbe730c373b7c27c06c30b293958cbe7 /src | |
parent | 16b5e6b958f2e6093465a8ca04100001137a2614 (diff) | |
download | jalv-94271414197f2bc758076811d6d31c0771848394.tar.gz jalv-94271414197f2bc758076811d6d31c0771848394.tar.bz2 jalv-94271414197f2bc758076811d6d31c0771848394.zip |
Fix whitespace and use LV2_INSTANCE_ACCESS_URI
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -23,6 +23,7 @@ #include "lv2/buf-size/buf-size.h" #include "lv2/core/lv2.h" #include "lv2/data-access/data-access.h" +#include "lv2/instance-access/instance-access.h" #include "lv2/log/log.h" #include "lv2/midi/midi.h" #include "lv2/options/options.h" @@ -414,12 +415,16 @@ jalv_ui_instantiate(Jalv* jalv, const char* native_ui_type, void* parent) #if USE_SUIL jalv->ui_host = suil_host_new(jalv_ui_write, jalv_ui_port_index, NULL, NULL); - const LV2_Feature parent_feature = {LV2_UI__parent, parent}; + const LV2_Feature parent_feature = {LV2_UI__parent, parent}; + const LV2_Feature instance_feature = { - NS_EXT "instance-access", lilv_instance_get_handle(jalv->instance)}; - const LV2_Feature data_feature = {LV2_DATA_ACCESS_URI, + LV2_INSTANCE_ACCESS_URI, lilv_instance_get_handle(jalv->instance)}; + + const LV2_Feature data_feature = {LV2_DATA_ACCESS_URI, &jalv->features.ext_data}; - const LV2_Feature idle_feature = {LV2_UI__idleInterface, NULL}; + + const LV2_Feature idle_feature = {LV2_UI__idleInterface, NULL}; + const LV2_Feature* ui_features[] = {&jalv->features.map_feature, &jalv->features.unmap_feature, &instance_feature, |