summaryrefslogtreecommitdiff
path: root/tools/dbus-print-message.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-10-18 13:46:45 +1300
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-27 15:08:25 +0000
commit969f3918dcc4a4f6ad03dd078f9bb6a108846513 (patch)
treee0298dd6099a40c4d238ee9ba3f97dd47af79d24 /tools/dbus-print-message.c
parent00993d3702dfdb00970ac62fa793aa60cd7c162e (diff)
downloaddbus-969f3918dcc4a4f6ad03dd078f9bb6a108846513.tar.gz
Support printing unix file descriptors in dbus-send/dbus-monitor
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=70592 Reviewed-by: Chengwei Yang <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools/dbus-print-message.c')
-rw-r--r--tools/dbus-print-message.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c
index 75d00aca..e0dd2da6 100644
--- a/tools/dbus-print-message.c
+++ b/tools/dbus-print-message.c
@@ -346,7 +346,15 @@ print_iter (DBusMessageIter *iter, dbus_bool_t literal, int depth)
printf("}\n");
break;
}
-
+
+ case DBUS_TYPE_UNIX_FD:
+ {
+ int fd;
+ dbus_message_iter_get_basic (iter, &fd);
+ printf ("unix fd %d\n", fd);
+ break;
+ }
+
default:
printf (" (dbus-monitor too dumb to decipher arg type '%c')\n", type);
break;