Pass the pointer to the factory
@@ -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
