client audio: Support memfd transport

Now that all layers in the stack support memfd blocks, add memfd
pools support for client context and audio playback data.

Use such memfd pools by default only if the server signals memfd
support in its connection negotiations.

Also add ability for clients to force-disable memfd transport
through the `enable-memfd=' client configuration option.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
This commit is contained in:
Ahmed S. Darwish 2016-04-15 23:06:02 +02:00 committed by Arun Raghavan
parent a831e45515
commit b1d47d60fc
7 changed files with 88 additions and 7 deletions

View file

@ -88,6 +88,7 @@ struct pa_context {
bool is_local:1;
bool do_shm:1;
bool memfd_on_local:1;
bool server_specified:1;
bool no_fail:1;
bool do_autospawn:1;
@ -95,6 +96,8 @@ struct pa_context {
bool filter_added:1;
pa_spawn_api spawn_api;
pa_mem_type_t shm_type;
pa_strlist *server_list;
char *server;