core: introduce the notion of provided features on components

Each component can optionally "provide" a feature, which is basically
a string that describes the feature (ex. "support.dbus"). If the
component loads successfully, the feature is marked as provided and
can be tested for its presence with wp_core_test_feature()
This commit is contained in:
George Kiagiadakis
2023-06-12 23:48:32 +03:00
parent f878e2f62d
commit c7cb193588
19 changed files with 67 additions and 27 deletions

View File

@@ -92,7 +92,7 @@ wp_require_api_transition_execute_step (WpTransition * transition, guint step)
"libwireplumber-module-%s", api_name);
self->pending_plugins++;
wp_core_load_component (core, module_name, "module", NULL, NULL,
wp_core_load_component (core, module_name, "module", NULL, NULL, NULL,
(GAsyncReadyCallback) on_plugin_loaded, self);
}
}