main.c: Add support for ifexits and nofail flags

- pipewire uses these flags to control module loading.
- remove all the references of bluetooth config/lua and move to
  wpsettings.
This commit is contained in:
Ashok Sidipotu
2022-05-13 12:33:47 +05:30
committed by Julian Bouzas
parent 2ef76f823a
commit ff3b5fe828
8 changed files with 53 additions and 175 deletions

View File

@@ -54,8 +54,8 @@ load_module (WpCore * core, const gchar * module_name,
GModule *gmodule;
gpointer module_init;
wp_debug_object(core, "loading module(%s)", module_name);
module_path = g_module_build_path (wp_get_module_dir (), module_name);
wp_debug_object(core, "loading module(%s) at %s", module_name, module_path);
gmodule = g_module_open (module_path, G_MODULE_BIND_LOCAL);
if (!gmodule) {
g_set_error (error, WP_DOMAIN_LIBRARY, WP_LIBRARY_ERROR_OPERATION_FAILED,