From 98ad8a8ec6626f7f5c78915b6bdf2be688b4839f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 30 Jan 2005 07:44:08 +0000 Subject: 2005-01-30 Havoc Pennington * glib/dbus-gobject.c (introspect_properties): fix the XML generated * dbus/dbus-message.c (dbus_message_unref): add an in_cache flag which effectively detects the use of freed messages * glib/dbus-gobject.c (handle_introspect): modify and return the reply message instead of the incoming message * dbus/dbus-object-tree.c (handle_default_introspect_unlocked): gee, maybe it should SEND THE XML instead of just making a string and freeing it again ;-) * tools/dbus-print-message.c (print_message): improve printing of messages * configure.in: add debug-glib.service to the output --- dbus/dbus-message-private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dbus/dbus-message-private.h') diff --git a/dbus/dbus-message-private.h b/dbus/dbus-message-private.h index 5f727ae1..9ba5c2f4 100644 --- a/dbus/dbus-message-private.h +++ b/dbus/dbus-message-private.h @@ -97,6 +97,10 @@ struct DBusMessage unsigned int locked : 1; /**< Message being sent, no modifications allowed. */ +#ifndef DBUS_DISABLE_CHECKS + unsigned int in_cache : 1; /**< Has been "freed" since it's in the cache (this is a debug feature) */ +#endif + DBusList *size_counters; /**< 0-N DBusCounter used to track message size. */ long size_counter_delta; /**< Size we incremented the size counters by. */ -- cgit