mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
conf: invert all negative boolean configuration option
This commit is contained in:
parent
8998cba683
commit
facae1f275
6 changed files with 62 additions and 54 deletions
|
|
@ -92,16 +92,17 @@ int pa_client_conf_load(pa_client_conf *c, const char *filename) {
|
|||
|
||||
/* Prepare the configuration parse table */
|
||||
pa_config_item table[] = {
|
||||
{ "daemon-binary", pa_config_parse_string, &c->daemon_binary, NULL },
|
||||
{ "extra-arguments", pa_config_parse_string, &c->extra_arguments, NULL },
|
||||
{ "default-sink", pa_config_parse_string, &c->default_sink, NULL },
|
||||
{ "default-source", pa_config_parse_string, &c->default_source, NULL },
|
||||
{ "default-server", pa_config_parse_string, &c->default_server, NULL },
|
||||
{ "autospawn", pa_config_parse_bool, &c->autospawn, NULL },
|
||||
{ "cookie-file", pa_config_parse_string, &c->cookie_file, NULL },
|
||||
{ "disable-shm", pa_config_parse_bool, &c->disable_shm, NULL },
|
||||
{ "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
{ "daemon-binary", pa_config_parse_string, &c->daemon_binary, NULL },
|
||||
{ "extra-arguments", pa_config_parse_string, &c->extra_arguments, NULL },
|
||||
{ "default-sink", pa_config_parse_string, &c->default_sink, NULL },
|
||||
{ "default-source", pa_config_parse_string, &c->default_source, NULL },
|
||||
{ "default-server", pa_config_parse_string, &c->default_server, NULL },
|
||||
{ "autospawn", pa_config_parse_bool, &c->autospawn, NULL },
|
||||
{ "cookie-file", pa_config_parse_string, &c->cookie_file, NULL },
|
||||
{ "disable-shm", pa_config_parse_bool, &c->disable_shm, NULL },
|
||||
{ "enable-shm", pa_config_parse_not_bool, &c->disable_shm, NULL },
|
||||
{ "shm-size-bytes", pa_config_parse_size, &c->shm_size, NULL },
|
||||
{ NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
if (filename) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue