pstream: Allow reading/writing through srbchannel
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 25 Apr 2014 14:58:03 +0000 (16:58 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 27 Jun 2014 12:23:09 +0000 (14:23 +0200)
commit4931637f822f23888c7477ad5bbfcf87b337db48
tree39c3167b7863a0f9064a26f04f1c634e2551d67d
parentb06e61652533201f0b58ed339d4435099d180a36
pstream: Allow reading/writing through srbchannel

For writing, we prefer writing through the srbchannel if one is available,
and we have no ancil data to send.

For reading, we support reading from both in parallel. This meant replicating
a struct used for reading, so a lot of this patch is just a search/replace in
do_read to use the appropriate channel for reading.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/pstream.c
src/pulsecore/pstream.h