mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
GDBusConnection: Make interface lookups O(1)
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
5bcf54b29c
commit
91f97ebbaa
@ -3662,6 +3662,7 @@ typedef struct
|
||||
static void
|
||||
exported_interface_free (ExportedInterface *ei)
|
||||
{
|
||||
g_dbus_interface_info_cache_release (ei->interface_info);
|
||||
g_dbus_interface_info_unref ((GDBusInterfaceInfo *) ei->interface_info);
|
||||
|
||||
call_destroy_notify (ei->context,
|
||||
@ -4731,6 +4732,7 @@ g_dbus_connection_register_object (GDBusConnection *connection,
|
||||
ei->user_data_free_func = user_data_free_func;
|
||||
ei->vtable = _g_dbus_interface_vtable_copy (vtable);
|
||||
ei->interface_info = g_dbus_interface_info_ref (interface_info);
|
||||
g_dbus_interface_info_cache_build (ei->interface_info);
|
||||
ei->interface_name = g_strdup (interface_info->name);
|
||||
ei->context = g_main_context_get_thread_default ();
|
||||
if (ei->context != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user