pulsecore: Cache daemon shm size inside pa_core
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 12 Mar 2016 22:48:15 +0000 (00:48 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Sat, 2 Apr 2016 03:35:02 +0000 (05:35 +0200)
commit1f5e72264ea3ccc23aa34460874c8581909d0e89
tree35ee7c9b8c1dabeeb084c5e0fd2b6011ffe86549
parent0f48b7c82378c32194b625d1fd886eee7f1e5928
pulsecore: Cache daemon shm size inside pa_core

The daemon `shm-size-bytes' configuration value was read, and then
directly used, for creating the initial server-wide SHM files.

This is fine for now, but soon, such server-wide SHMs will be replaced
with per-client SHM files that will be dynamically created and deleted
according to clients open and close. Thus, appropriately cache this
configuration value.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
src/pulsecore/core.c
src/pulsecore/core.h