SHM: Refactor private allocations
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 12 Mar 2016 23:01:38 +0000 (01:01 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Sat, 2 Apr 2016 03:46:42 +0000 (05:46 +0200)
commit1c3a2bcaf17014ad81e0d6bc61ca42c477de1140
tree24ab00cfae751fe6636efb49f419f8420017cd87
parentb88acd0266384a754157b515d4b51256afad8266
SHM: Refactor private allocations

pa_shm_create_rw() is responsible for creating two types of memory:
POSIX shared memory and regular malloc()-ed ones.

A third memory type, memfds, will be added later. Thus to add this
extra shared memory type in a sane manner, refactor private memory
allocations into their own static methods.

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