iochannel/pstream/pdispatch: Add support for receiving file descriptors

System Internals / PulseAudio - David Henningsson [canonical.com] - 27 June 2014 07:16 UTC

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.

06bc22b iochannel/pstream/pdispatch: Add support for receiving file descriptors
src/modules/module-tunnel.c | 4 ++--
src/pulse/context.c | 4 ++--
src/pulsecore/iochannel.c | 45 ++++++++++++++++++++++++++++++---------
src/pulsecore/iochannel.h | 2 +-
src/pulsecore/pdispatch.c | 26 +++++++++++++++++-----
src/pulsecore/pdispatch.h | 4 +++-
src/pulsecore/protocol-native.c | 4 ++--
src/pulsecore/pstream.c | 24 +++++++++++++++------
src/pulsecore/pstream.h | 2 +-
9 files changed, 84 insertions(+), 31 deletions(-)

Upstream: cgit.freedesktop.org


  • Share