commit 9ec05e3cd62eb82e5dc05f07314eb22ad722490c parent d33c06e4083139cdb9d63e8e268eebe69e0f5cdf Author: Alexandre BIQUE <bique.alexandre@gmail.com> Date: Sun, 19 Dec 2021 08:44:38 +0100 Pass the pointer to the factory Diffstat:
M | include/clap/plugin-factory.h | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/clap/plugin-factory.h b/include/clap/plugin-factory.h @@ -12,20 +12,20 @@ extern "C" { struct clap_plugin_factory { /* Get the number of plugins available. * [thread-safe] */ - uint32_t (*get_plugin_count)(void); + uint32_t (*get_plugin_count)(const struct clap_plugin_factory *factory); /* Retrieves a plugin descriptor by its index. * Returns null in case of error. * The descriptor does not need to be freed. * [thread-safe] */ - const clap_plugin_descriptor *(*get_plugin_descriptor)(uint32_t index); + const clap_plugin_descriptor *(*get_plugin_descriptor)(const struct clap_plugin_factory *factory, uint32_t index); /* Create a clap_plugin by its plugin_id. * The returned pointer must be freed by calling plugin->destroy(plugin); * The plugin is not allowed to use the host callbacks in the create method. * Returns null in case of error. * [thread-safe] */ - const clap_plugin *(*create_plugin)(const clap_host *host, const char *plugin_id); + const clap_plugin *(*create_plugin)(const struct clap_plugin_factory *factory, const clap_host *host, const char *plugin_id); }; #ifdef __cplusplus