lib: introduce WpComponentLoader and remove WpModule

The component loader is a more generic and extensible mechanism
of loading components; modules are one type of component...
The idea is to make scripts and config files also be components,
loaded by plugins that inherit WpComponentLoader
This commit is contained in:
George Kiagiadakis
2021-01-31 23:29:55 +02:00
parent f61e292959
commit 0d072874a1
27 changed files with 289 additions and 80 deletions

View File

@@ -182,12 +182,12 @@ wp_device_activation_class_init (WpDeviceActivationClass * klass)
plugin_class->disable = wp_device_activation_disable;
}
WP_PLUGIN_EXPORT void
wireplumber__module_init (WpModule * module, WpCore * core, GVariant * args)
WP_PLUGIN_EXPORT gboolean
wireplumber__module_init (WpCore * core, GVariant * args, GError ** error)
{
wp_plugin_register (g_object_new (wp_device_activation_get_type (),
"name", "device-activation",
"core", core,
NULL));
return TRUE;
}