pulsecore: Transform pa_mempool_new() into a factory method
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 12 Mar 2016 22:57:06 +0000 (00:57 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Sat, 2 Apr 2016 03:44:34 +0000 (05:44 +0200)
commitb88acd0266384a754157b515d4b51256afad8266
treebfb9b7d0355f3fd0cb66c9c591b3081006371f5f
parent211a520543b97c2c769d85bdc4d4c8d3a9023199
pulsecore: Transform pa_mempool_new() into a factory method

Soon we're going to have three types of memory pools: POSIX shm_open()
pools, memfd memfd_create() ones, and privately malloc()-ed pools.

Thus introduce annotations for the memory types supported and change
pa_mempool_new() into a factory method based on required memory.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
18 files changed:
src/Makefile.am
src/pulse/context.c
src/pulsecore/core.c
src/pulsecore/mem.h [new file with mode: 0644]
src/pulsecore/memblock.c
src/pulsecore/memblock.h
src/pulsecore/protocol-native.c
src/pulsecore/shm.c
src/pulsecore/shm.h
src/tests/cpu-mix-test.c
src/tests/lfe-filter-test.c
src/tests/mcalign-test.c
src/tests/memblock-test.c
src/tests/memblockq-test.c
src/tests/mix-test.c
src/tests/remix-test.c
src/tests/resampler-test.c
src/tests/srbchannel-test.c