Rename factory function in CLAP chainloader

For consistency
This commit is contained in:
Robbert van der Helm
2022-08-24 14:56:24 +02:00
parent 1820a82bef
commit dc54d082a8
+4 -5
View File
@@ -48,9 +48,8 @@ using ClapPluginBridge = void;
ClapPluginBridge* (*yabridge_bridge_init)(const char* plugin_path) = nullptr; ClapPluginBridge* (*yabridge_bridge_init)(const char* plugin_path) = nullptr;
void (*yabridge_bridge_free)(ClapPluginBridge* instance) = nullptr; void (*yabridge_bridge_free)(ClapPluginBridge* instance) = nullptr;
const void* (*yabridge_module_get_plugin_factory)(ClapPluginBridge* instance, const void* (*yabridge_module_get_factory)(ClapPluginBridge* instance,
const char* factory_id) = const char* factory_id) = nullptr;
nullptr;
/** /**
* The bridge instance for this chainloader. This is initialized when * The bridge instance for this chainloader. This is initialized when
@@ -102,7 +101,7 @@ bool initialize_library() {
LOAD_FUNCTION(yabridge_bridge_init); LOAD_FUNCTION(yabridge_bridge_init);
LOAD_FUNCTION(yabridge_bridge_free); LOAD_FUNCTION(yabridge_bridge_free);
LOAD_FUNCTION(yabridge_module_get_plugin_factory); LOAD_FUNCTION(yabridge_module_get_factory);
#undef LOAD_FUNCTION #undef LOAD_FUNCTION
@@ -148,7 +147,7 @@ const void* clap_entry_get_factory(const char* factory_id) {
assert(bridge); assert(bridge);
assert(factory_id); assert(factory_id);
return yabridge_module_get_plugin_factory(bridge.get(), factory_id); return yabridge_module_get_factory(bridge.get(), factory_id);
} }
CLAP_EXPORT const clap_plugin_entry_t clap_entry = { CLAP_EXPORT const clap_plugin_entry_t clap_entry = {