commit 40646169ea79b048548d7becd5b766aa4a398f0a
parent 95099c1cd3d847fa99436fad36b4541cf1f43d41
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Thu, 3 Mar 2016 20:55:17 +0100
Let the user save a single parameter group
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/clap/ext/state.h b/include/clap/ext/state.h
@@ -12,6 +12,10 @@ struct clap_plugin_state
* next call to save() or when the plugin is destroyed. */
bool (*save)(struct clap_plugin *plugin, void **buffer, int32_t *size);
bool (*restore)(struct clap_plugin *plugin, const void *buffer, int32_t size);
+
+ /* Same as above except this one focus on a parameter group. */
+ bool (*save_group)(struct clap_plugin *plugin, const char *group_id, void **buffer, int32_t *size);
+ bool (*restore_group)(struct clap_plugin *plugin, const char *group_id, const void *buffer, int32_t size);
};
#endif /* !CLAP_EXT_STATE_H */