aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-10-23 19:14:24 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-10-23 19:14:24 +0200
commit3712300508b45c86c57b318d5d0f075ad59c6a55 (patch)
treec1e22b7c8925cd032b9fad464ed13b6897db3380 /include
parent266a219aace9eae60438f968b82ec1b57661fd99 (diff)
downloadsynthpod-3712300508b45c86c57b318d5d0f075ad59c6a55.tar.xz
nk: prototype open plugin ui state saving.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index ae60796d..ed6652fb 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -188,6 +188,7 @@ struct _reg_t {
reg_item_t update_rate;
reg_item_t instance_access;
reg_item_t data_access;
+ reg_item_t ui;
} ui;
struct {
@@ -491,6 +492,7 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->ui.update_rate, world, map, LV2_UI__updateRate);
_register(&regs->ui.instance_access, world, map, LV2_INSTANCE_ACCESS_URI);
_register(&regs->ui.data_access, world, map, LV2_DATA_ACCESS_URI);
+ _register(&regs->ui.ui, world, map, LV2_UI__ui);
#ifndef LV2_PRESETS__bank
# define LV2_PRESETS__bank LV2_PRESETS_PREFIX "bank"
@@ -747,6 +749,7 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->ui.update_rate);
_unregister(&regs->ui.instance_access);
_unregister(&regs->ui.data_access);
+ _unregister(&regs->ui.ui);
_unregister(&regs->pset.preset);
_unregister(&regs->pset.preset_bank);