aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-11-02 22:15:18 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-11-02 22:15:18 +0100
commit7452282d077a0ca685bee07b9f1a967d5b35bdaa (patch)
treec014a864f8679e2f39afaa2159f471f0ff268e14 /include
parenta60ac771f44054fb3371905cc0e1ed4c612189d2 (diff)
downloadsynthpod-7452282d077a0ca685bee07b9f1a967d5b35bdaa.tar.xz
nsm: store visibility state in state.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_app.h6
-rw-r--r--include/synthpod_private.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/include/synthpod_app.h b/include/synthpod_app.h
index 563d5398..5fbe539b 100644
--- a/include/synthpod_app.h
+++ b/include/synthpod_app.h
@@ -207,6 +207,12 @@ void
sp_app_bundle_save(sp_app_t *app, LV2_URID urn, bool via_app);
void
+sp_app_visibility_set(sp_app_t *app, bool visibility);
+
+bool
+sp_app_visibility_get(sp_app_t *app);
+
+void
sp_app_xrun_report(sp_app_t *app);
#endif // _SYNTHPOD_APP_H
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index 7f7744e6..50fbd4af 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -408,6 +408,7 @@ struct _reg_t {
reg_item_t learning;
reg_item_t placeholder;
+ reg_item_t visibility;
} synthpod;
struct {
@@ -702,6 +703,7 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->synthpod.learning, world, map, SYNTHPOD_PREFIX"learning");
_register(&regs->synthpod.placeholder, world, map, SYNTHPOD_PREFIX"placeholder");
+ _register(&regs->synthpod.visibility, world, map, SYNTHPOD_PREFIX"visibility");
_register(&regs->midi.Controller, world, map, LV2_MIDI__Controller);
_register(&regs->midi.channel, world, map, LV2_MIDI__channel);
@@ -961,6 +963,7 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->synthpod.learning);
_unregister(&regs->synthpod.placeholder);
+ _unregister(&regs->synthpod.visibility);
_unregister(&regs->midi.Controller);
_unregister(&regs->midi.channel);