From ba7daa606cf20ff3b5e992907f380a425feaef01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 22 Apr 2009 03:31:20 +0200 Subject: unix-fd: add basic marshalling code for unix fds This is actually pretty boring since we store our fds as indexes that are stored as uint32_t's. --- dbus/dbus-marshal-byteswap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dbus/dbus-marshal-byteswap.c') diff --git a/dbus/dbus-marshal-byteswap.c b/dbus/dbus-marshal-byteswap.c index 6c9fff5d..5f0945b9 100644 --- a/dbus/dbus-marshal-byteswap.c +++ b/dbus/dbus-marshal-byteswap.c @@ -191,6 +191,11 @@ byteswap_body_helper (DBusTypeReader *reader, } break; + case DBUS_TYPE_UNIX_FD: + /* fds can only be passed on a local machine, so byte order must always match */ + _dbus_assert_not_reached("attempted to byteswap unix fds which makes no sense"); + break; + default: _dbus_assert_not_reached ("invalid typecode in supposedly-validated signature"); break; -- cgit