main: Add support for deps flag in loading modules

- support loading modules dependent on wireplumber settings in JSON
  config.
- load the settings module before parsing wireplumber.components,
  so that dependencies can be fetched during parsing.
- access lua scripts are switched to JSON based config and lua configs
  are removed.
This commit is contained in:
Ashok Sidipotu
2022-04-27 18:18:03 +05:30
committed by Julian Bouzas
parent a5d62b7bbd
commit a4f16a98f0
9 changed files with 86 additions and 104 deletions

View File

@@ -145,7 +145,6 @@ do_parse_settings (void *data, const char *location,
g_autoptr (WpIterator) iter = wp_spa_json_new_iterator (json);
g_auto (GValue) item = G_VALUE_INIT;
if (!wp_spa_json_is_object (json)) {
/* "wireplumber.settings" section has to be a JSON object element. */
wp_transition_return_error (transition, g_error_new (
@@ -226,7 +225,7 @@ on_metadata_activated (WpMetadata * m, GAsyncResult * res, gpointer user_data)
*/
wp_transition_return_error (transition, g_error_new (
WP_DOMAIN_LIBRARY, WP_LIBRARY_ERROR_OPERATION_FAILED,
"No settings present in the context conf file: settings"
"No settings present in the context conf file: settings "
"are not loaded"));
return;
}