diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-22 03:31:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-20 01:36:44 +0200 |
commit | ba7daa606cf20ff3b5e992907f380a425feaef01 (patch) | |
tree | 540ece84c50a5b8724a7e38189f7ee1638cc06ae /dbus/dbus-marshal-byteswap.c | |
parent | faac66e3ea52644a5efa2f69ea2f6825a15b31a6 (diff) |
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.
Diffstat (limited to 'dbus/dbus-marshal-byteswap.c')
-rw-r--r-- | dbus/dbus-marshal-byteswap.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |