summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-dataslot.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-11-26 06:22:53 +0000
committerHavoc Pennington <hp@redhat.com>2004-11-26 06:22:53 +0000
commita58180de0e720f7fca46a5af69a7b27b5e102a1d (patch)
tree2338738f08cbda1e824756fd2efcc8883d197ddc /dbus/dbus-dataslot.h
parentc670c23823a2f62a3bbb5867451f357d2b96c43d (diff)
2004-11-26 Havoc Pennington <hp@redhat.com>
* dbus/dbus-message.c (struct DBusMessage): put the locked bit and the "char byte_order" next to each other to save 4 bytes (dbus_message_new_empty_header): reduce preallocation, since the message cache should achieve a similar effect (dbus_message_cache_or_finalize, dbus_message_get_cached): add a message cache that keeps a few DBusMessage around in a pool, another 8% speedup or so. * dbus/dbus-dataslot.c (_dbus_data_slot_list_clear): new function
Diffstat (limited to 'dbus/dbus-dataslot.h')
-rw-r--r--dbus/dbus-dataslot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbus/dbus-dataslot.h b/dbus/dbus-dataslot.h
index 034a6191..04c8f309 100644
--- a/dbus/dbus-dataslot.h
+++ b/dbus/dbus-dataslot.h
@@ -87,6 +87,7 @@ dbus_bool_t _dbus_data_slot_list_set (DBusDataSlotAllocator *allocator,
void* _dbus_data_slot_list_get (DBusDataSlotAllocator *allocator,
DBusDataSlotList *list,
int slot);
+void _dbus_data_slot_list_clear (DBusDataSlotList *list);
void _dbus_data_slot_list_free (DBusDataSlotList *list);