core: add PW_KEY_CORE_PROFILE_MODULES

Let the core load a set of default modules.
Add a key to control what default set to load, falling back to a
reasonable set. Make the daemon not load any set and rely on the
config script to load modules.
This commit is contained in:
Wim Taymans 2019-12-05 16:17:42 +01:00
parent 6b1e1a82f1
commit 1ba5a17236
7 changed files with 25 additions and 19 deletions

View file

@ -385,8 +385,6 @@ int main(int argc, char *argv[])
pw_core_add_spa_lib(impl.core, "api.bluez5.*", "bluez5/libspa-bluez5");
pw_module_load(impl.core, "libpipewire-module-client-device", NULL, NULL);
clock_gettime(CLOCK_MONOTONIC, &impl.now);
spa_list_init(&impl.device_list);

View file

@ -128,7 +128,6 @@ int main(int argc, char *argv[])
data.factory = argv[2];
pw_module_load(data.core, "libpipewire-module-spa-device-factory", NULL, NULL);
pw_module_load(data.core, "libpipewire-module-client-device", NULL, NULL);
pw_remote_add_listener(data.remote, &data.remote_listener, &remote_events, &data);

View file

@ -1669,11 +1669,6 @@ int main(int argc, char *argv[])
impl.policy_remote = pw_remote_new(impl.this.core, NULL, 0);
pw_remote_add_listener(impl.policy_remote, &impl.policy_listener, &policy_remote_events, &impl);
pw_module_load(impl.this.core, "libpipewire-module-client-device", NULL, NULL);
pw_module_load(impl.this.core, "libpipewire-module-adapter", NULL, NULL);
pw_module_load(impl.this.core, "libpipewire-module-metadata", NULL, NULL);
pw_module_load(impl.this.core, "libpipewire-module-session-manager", NULL, NULL);
pw_map_init(&impl.globals, 64, 64);
spa_list_init(&impl.global_list);
pw_map_init(&impl.endpoint_links, 64, 64);