commit c32a6739e22310e898df9340948c3b562dcb1105
parent db3f879b1ce1af427883d1b09bee3bda186536ee
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Sat, 7 Jan 2023 13:07:39 +0100
Add context pointers
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/clap/factory/draft/preset-discovery.h b/include/clap/factory/draft/preset-discovery.h
@@ -80,6 +80,8 @@ enum clap_preset_discovery_flags {
//
// This interface isn't thread-safe.
typedef struct clap_preset_discovery_metadata_receiver {
+ void *receiver_data; // reserved pointer for the metadata receiver
+
// If there is an error reading metadata from a file this should be called with an error
// message.
// os_error: the operating system error, if applicable. If not applicable set it to a non-error
@@ -208,6 +210,8 @@ typedef struct clap_preset_discovery_provider_descriptor {
typedef struct clap_preset_discovery_provider {
const clap_preset_discovery_provider_descriptor_t *desc;
+ void *provider_data; // reserved pointer for the provider
+
// Destroys the preset provider
void(CLAP_ABI *destroy)(const struct clap_preset_discovery_provider *provider);
@@ -236,6 +240,8 @@ typedef struct clap_preset_discovery_indexer {
const char *url; // eg: "https://bitwig.com"
const char *version; // eg: "4.3", see plugin.h for advice on how to format the version
+ void *indexer_data; // reserved pointer for the indexer
+
// Declares a preset filetype.
// Don't callback into the provider during this call.
void(CLAP_ABI *declare_filetype)(const struct clap_preset_discovery_indexer *indexer,