commit 064ec1de6536df37afa168c92527cada9704df4f
parent 149442274fc343eea7472a9ea03d94daa9272f35
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Fri, 6 Jan 2023 18:37:40 +0100
Fixes problems found by Bremmers
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/clap/ext/draft/preset-load.h b/include/clap/ext/draft/preset-load.h
@@ -26,16 +26,16 @@ typedef struct clap_host_preset_load {
// value, eg: 0 on unix and Windows.
//
// [main-thread]
- void(CLAP_ABI *on_error)(const clap_plugin_t *plugin,
- const char *uri,
- int32_t os_error,
- const char *msg);
+ void(CLAP_ABI *on_error)(const clap_host_t *host,
+ const char *uri,
+ int32_t os_error,
+ const char *msg);
// Informs the host that the following preset has been loaded.
// This contributes to keep in sync the host preset browser and plugin preset browser.
//
// [main-thread]
- void(CLAP_ABI *loaded)(const clap_plugin_t *plugin, const char *uri);
+ void(CLAP_ABI *loaded)(const clap_host_t *host, const char *uri);
} clap_host_preset_load_t;
#ifdef __cplusplus
diff --git a/include/clap/factory/draft/preset-discovery.h b/include/clap/factory/draft/preset-discovery.h
@@ -272,8 +272,8 @@ typedef struct clap_preset_discovery_indexer {
// The returned pointer is owned by the indexer.
// It is forbidden to call it before provider->init().
// You can call it within provider->init() call, and after.
- const void *(CLAP_ABI *get_extension)(const struct clap_preset_discovery_provider *provider,
- const char *extension_id);
+ const void *(CLAP_ABI *get_extension)(const struct clap_preset_discovery_indexer *indexer,
+ const char *extension_id);
} clap_preset_indexer_t;
// Every methods in this factory must be thread-safe.