aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-31 17:48:22 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-31 17:48:22 +0100
commit00f5759f2864531c9d8a39b3619b099066d0fc27 (patch)
tree61470c12adcdebaf6ff00c23d9f3bbc7d27996b8 /include
parent4d0ccfd367ea5984e4dbe6e0af209b9363976c50 (diff)
downloadsynthpod-00f5759f2864531c9d8a39b3619b099066d0fc27.tar.xz
app: prototype (a)sync state worker.
* to support state:threadSafeRestore feature.
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 6a08782c..ab9a4ecf 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -318,6 +318,7 @@ struct _reg_t {
struct {
reg_item_t state;
reg_item_t load_default_state;
+ reg_item_t thread_safe_restore;
} state;
struct {
@@ -559,6 +560,10 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->state.state, world, map, LV2_STATE__state);
_register(&regs->state.load_default_state, world, map, LV2_STATE__loadDefaultState);
+#ifndef LV2_STATE__threadSafeRestore
+# define LV2_STATE__threadSafeRestore LV2_STATE_PREFIX "threadSafeRestore"
+#endif
+ _register(&regs->state.thread_safe_restore, world, map, LV2_STATE__threadSafeRestore);
_register(&regs->synthpod.payload, world, map, SYNTHPOD_PREFIX"payload");
_register_string(&regs->synthpod.state, world, map, "state.ttl");
@@ -769,6 +774,7 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->state.state);
_unregister(&regs->state.load_default_state);
+ _unregister(&regs->state.thread_safe_restore);
_unregister(&regs->synthpod.payload);
_unregister(&regs->synthpod.state);