summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-marshal-byteswap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-22 03:31:20 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-20 01:36:44 +0200
commitba7daa606cf20ff3b5e992907f380a425feaef01 (patch)
tree540ece84c50a5b8724a7e38189f7ee1638cc06ae /dbus/dbus-marshal-byteswap.c
parentfaac66e3ea52644a5efa2f69ea2f6825a15b31a6 (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.c5
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;