mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
keys: rename key for the module profile
This commit is contained in:
parent
7a69c07afc
commit
a1451fd820
3 changed files with 7 additions and 6 deletions
|
|
@ -91,7 +91,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
properties = pw_properties_new(
|
||||
PW_KEY_CORE_NAME, daemon_name,
|
||||
PW_KEY_CORE_PROFILE_MODULES, "none",
|
||||
PW_KEY_CONTEXT_PROFILE_MODULES, "none",
|
||||
PW_KEY_CORE_DAEMON, "1", NULL);
|
||||
|
||||
/* parse configuration */
|
||||
|
|
@ -112,9 +112,7 @@ int main(int argc, char *argv[])
|
|||
pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGINT, do_quit, loop);
|
||||
pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGTERM, do_quit, loop);
|
||||
|
||||
context = pw_context_new(pw_main_loop_get_loop(loop),
|
||||
properties, 0);
|
||||
|
||||
context = pw_context_new(pw_main_loop_get_loop(loop), properties, 0);
|
||||
if (context == NULL) {
|
||||
pw_log_error("failed to create context: %m");
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -618,7 +618,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
|||
pw_global_add_listener(this->global, &this->global_listener, &global_events, this);
|
||||
pw_global_register(this->global);
|
||||
|
||||
if ((str = pw_properties_get(properties, PW_KEY_CORE_PROFILE_MODULES)) == NULL)
|
||||
if ((str = pw_properties_get(properties, PW_KEY_CONTEXT_PROFILE_MODULES)) == NULL)
|
||||
str = "default";
|
||||
|
||||
load_module_profile(this, str);
|
||||
|
|
|
|||
|
|
@ -69,9 +69,12 @@ extern "C" {
|
|||
#define PW_KEY_OBJECT_PATH "object.path" /**< unique path to construct the object */
|
||||
#define PW_KEY_OBJECT_ID "object.id" /**< a global object id */
|
||||
|
||||
/* context */
|
||||
#define PW_KEY_CONTEXT_PROFILE_MODULES "context.profile.modules" /**< a context profile for modules */
|
||||
|
||||
/* core */
|
||||
#define PW_KEY_CORE_ID "core.id" /**< the core id */
|
||||
#define PW_KEY_CORE_MONITORS "core.monitors" /**< the apis monitored by core. */
|
||||
#define PW_KEY_CORE_PROFILE_MODULES "core.profile.modules" /**< a core profile for modules */
|
||||
|
||||
/* cpu */
|
||||
#define PW_KEY_CPU_MAX_ALIGN "cpu.max-align" /**< maximum alignment needed to support
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue