[at-spi2-core: 16/47] registry.c: Use the stored bus_unique_name instead of fetching it every time
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 16/47] registry.c: Use the stored bus_unique_name instead of fetching it every time
- Date: Wed, 13 Jul 2022 03:08:27 +0000 (UTC)
commit 5c7b03bbf47dea746911ecf55e9136d6c813ede9
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jul 8 17:45:52 2022 -0500
registry.c: Use the stored bus_unique_name instead of fetching it every time
registryd/registry.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/registryd/registry.c b/registryd/registry.c
index 8379d5fe..c66a1d30 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -443,7 +443,7 @@ impl_Embed (DBusConnection *bus, DBusMessage *message, void *user_data)
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &reply_iter);
append_reference (&reply_iter,
- dbus_bus_get_unique_name (bus),
+ reg->bus_unique_name,
SPI_DBUS_PATH_ROOT);
return reply;
@@ -497,13 +497,14 @@ static DBusMessage *
impl_GetAccessibleAtPoint (DBusConnection * bus, DBusMessage * message,
void *user_data)
{
+ SpiRegistry *reg = SPI_REGISTRY (user_data);
DBusMessage *reply = NULL;
DBusMessageIter iter;
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &iter);
append_reference (&iter,
- dbus_bus_get_unique_name (bus),
+ reg->bus_unique_name,
SPI_DBUS_PATH_NULL);
return reply;
@@ -816,13 +817,14 @@ static DBusMessage *
impl_GetApplication (DBusConnection * bus,
DBusMessage * message, void *user_data)
{
+ SpiRegistry *reg = SPI_REGISTRY (user_data);
DBusMessage *reply = NULL;
DBusMessageIter iter;
reply = dbus_message_new_method_return (message);
dbus_message_iter_init_append (reply, &iter);
append_reference (&iter,
- dbus_bus_get_unique_name (bus),
+ reg->bus_unique_name,
SPI_DBUS_PATH_NULL);
return reply;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]