aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-11-07 19:27:28 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-11-07 19:27:28 +0100
commit913223ef6eb3de372b5f551567569024f97f4050 (patch)
treef63d16cd52c84add38b73a9189d871d2f0825b57 /include
parent41e98c3cb5f5832787fcfae1f5392572a96a4bc5 (diff)
downloadsynthpod-913223ef6eb3de372b5f551567569024f97f4050.tar.xz
app: load placeholder mod if injection fails.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index f6e39a9f..e6018234 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -395,6 +395,8 @@ struct _reg_t {
reg_item_t source_enabled;
reg_item_t sink_enabled;
reg_item_t learning;
+
+ reg_item_t placeholder;
} synthpod;
struct {
@@ -680,6 +682,8 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->synthpod.sink_enabled, world, map, SYNTHPOD_PREFIX"sinkEnabled");
_register(&regs->synthpod.learning, world, map, SYNTHPOD_PREFIX"learning");
+ _register(&regs->synthpod.placeholder, world, map, SYNTHPOD_PREFIX"placeholder");
+
_register(&regs->midi.Controller, world, map, LV2_MIDI__Controller);
_register(&regs->midi.channel, world, map, LV2_MIDI__channel);
_register(&regs->midi.controller_number, world, map, LV2_MIDI__controllerNumber);
@@ -928,6 +932,8 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->synthpod.sink_enabled);
_unregister(&regs->synthpod.learning);
+ _unregister(&regs->synthpod.placeholder);
+
_unregister(&regs->midi.Controller);
_unregister(&regs->midi.channel);
_unregister(&regs->midi.controller_number);