commit 5278c9868e4eb25a3e26d2e7c754554b79edbae3
parent cf1d4ad06f5a03099a8da8738624642d774effa7
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Mon, 9 Jan 2023 23:32:49 +0100
Let's have init() before destroy()
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/clap/factory/draft/preset-discovery.h b/include/clap/factory/draft/preset-discovery.h
@@ -213,14 +213,14 @@ typedef struct clap_preset_discovery_provider {
void *provider_data; // reserved pointer for the provider
- // Destroys the preset provider
- void(CLAP_ABI *destroy)(const struct clap_preset_discovery_provider *provider);
-
// Initialize the preset provider.
// It should declare all its locations, filetypes and collections.
// Returns false if initialization failed.
bool(CLAP_ABI *init)(const struct clap_preset_discovery_provider *provider);
+ // Destroys the preset provider
+ void(CLAP_ABI *destroy)(const struct clap_preset_discovery_provider *provider);
+
// reads metadata from the given file and passes them to the metadata receiver
bool(CLAP_ABI *get_metadata)(const struct clap_preset_discovery_provider *provider,
const char *uri,