GDBus: Add mechanism to make lookup on interfaces constant-time

This is used both on the service- and client-side and is currently
O(n).

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen
2011-03-28 11:31:05 -04:00
parent 5aa8f135c7
commit 5bcf54b29c
4 changed files with 175 additions and 3 deletions

View File

@@ -182,6 +182,9 @@ GDBusSignalInfo *g_dbus_interface_info_lookup_signal (GDBusInterfaceInfo
const gchar *name);
GDBusPropertyInfo *g_dbus_interface_info_lookup_property (GDBusInterfaceInfo *info,
const gchar *name);
void g_dbus_interface_info_cache_build (GDBusInterfaceInfo *info);
void g_dbus_interface_info_cache_release (GDBusInterfaceInfo *info);
void g_dbus_interface_info_generate_xml (GDBusInterfaceInfo *info,
guint indent,
GString *string_builder);