diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-04-15 15:37:44 +0200 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2014-06-27 14:16:32 +0200 |
commit | 06bc22b220905b127b02ddd95196d0b2bb4ea246 (patch) | |
tree | fb07431ac81f3f3648b0b59e495586f1802713dc /src/pulse | |
parent | cc7a317e858cbd64159e72bcbaf4796992591dc4 (diff) |
iochannel/pstream/pdispatch: Add support for receiving file descriptors
The file descriptors are read from the iochannel just like the creds are.
So instead of passing just creds (and creds_valid), we now pass the
entire pa_ancil struct.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Diffstat (limited to 'src/pulse')
-rw-r--r-- | src/pulse/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c index d9080234a..e1cd900d6 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -316,7 +316,7 @@ static void pstream_die_callback(pa_pstream *p, void *userdata) { pa_context_fail(c, PA_ERR_CONNECTIONTERMINATED); } -static void pstream_packet_callback(pa_pstream *p, pa_packet *packet, const pa_creds *creds, void *userdata) { +static void pstream_packet_callback(pa_pstream *p, pa_packet *packet, const pa_ancil *ancil, void *userdata) { pa_context *c = userdata; pa_assert(p); @@ -325,7 +325,7 @@ static void pstream_packet_callback(pa_pstream *p, pa_packet *packet, const pa_c pa_context_ref(c); - if (pa_pdispatch_run(c->pdispatch, packet, creds, c) < 0) + if (pa_pdispatch_run(c->pdispatch, packet, ancil, c) < 0) pa_context_fail(c, PA_ERR_PROTOCOL); pa_context_unref(c); |