summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-marshal.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-12-27 02:07:21 +0000
committerHavoc Pennington <hp@redhat.com>2002-12-27 02:07:21 +0000
commitb3ef8b0e9bd2719d502c7f2e0cf829e151386162 (patch)
tree59ce69b5939f2dbe03bb5e5e4d8aab6a1635835e /dbus/dbus-marshal.c
parentff5283ab92c668453fd2f28c1715a1e0e9b949f5 (diff)
2002-12-26 Havoc Pennington <hp@pobox.com>
* dbus/dbus-auth.c: fixes fixes fixes * dbus/dbus-transport-unix.c: wire up support for encoding/decoding data on the wire * dbus/dbus-auth.c (_dbus_auth_encode_data) (_dbus_auth_decode_data): append to target string instead of nuking it.
Diffstat (limited to 'dbus/dbus-marshal.c')
-rw-r--r--dbus/dbus-marshal.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/dbus/dbus-marshal.c b/dbus/dbus-marshal.c
index 9fbfb4e1..d8d0d5f7 100644
--- a/dbus/dbus-marshal.c
+++ b/dbus/dbus-marshal.c
@@ -342,6 +342,25 @@ _dbus_verbose_bytes (const unsigned char *data,
_dbus_verbose ("\n");
}
+/**
+ * Dump the given part of the string to verbose log.
+ *
+ * @param str the string
+ * @param start the start of range to dump
+ * @param len length of range
+ */
+void
+_dbus_verbose_bytes_of_string (const DBusString *str,
+ int start,
+ int len)
+{
+ const char *d;
+
+ _dbus_string_get_const_data_len (str, &d, start, len);
+
+ _dbus_verbose_bytes (d, len);
+}
+
/** @} */
#ifdef DBUS_BUILD_TESTS