diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-10-01 01:14:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-10-01 01:14:36 +0200 |
commit | 79ad4e63f691d1280dde2eb6521a1572c78d03ce (patch) | |
tree | 65670a8d2e354a4ac38644a7aef5cd194a43a8c3 /src/pulse/client-conf.c | |
parent | a84b72bf96745702ba59c678a973edc7504ee50e (diff) | |
download | pulseaudio-79ad4e63f691d1280dde2eb6521a1572c78d03ce.tar.gz |
Make the shared memory segment size configurable
This is useful only on systems where memory overcommit is not available
or disabled.
Diffstat (limited to 'src/pulse/client-conf.c')
-rw-r--r-- | src/pulse/client-conf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulse/client-conf.c b/src/pulse/client-conf.c index 739ef1610..58d64642a 100644 --- a/src/pulse/client-conf.c +++ b/src/pulse/client-conf.c @@ -61,6 +61,7 @@ static const pa_client_conf default_conf = { .disable_shm = FALSE, .cookie_file = NULL, .cookie_valid = FALSE, + .shm_size = 0 }; pa_client_conf *pa_client_conf_new(void) { @@ -99,6 +100,7 @@ int pa_client_conf_load(pa_client_conf *c, const char *filename) { { "autospawn", pa_config_parse_bool, NULL }, { "cookie-file", pa_config_parse_string, NULL }, { "disable-shm", pa_config_parse_bool, NULL }, + { "shm-size-bytes", pa_config_parse_size, NULL }, { NULL, NULL, NULL }, }; @@ -110,6 +112,7 @@ int pa_client_conf_load(pa_client_conf *c, const char *filename) { table[5].data = &c->autospawn; table[6].data = &c->cookie_file; table[7].data = &c->disable_shm; + table[8].data = &c->shm_size; if (filename) { |