mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-28 12:59:54 +01:00
gdbus: Use symbolic constants to call message bus methods
These function arguments are arranged in the obvious order from conceptually largest to smallest: (bus name, path, interface, method). Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
2151a82007
commit
fe14968c0d
@@ -1485,9 +1485,9 @@ async_init_call_get_name_owner (GTask *task)
|
||||
GDBusProxy *proxy = g_task_get_source_object (task);
|
||||
|
||||
g_dbus_connection_call (proxy->priv->connection,
|
||||
"org.freedesktop.DBus", /* name */
|
||||
"/org/freedesktop/DBus", /* object path */
|
||||
"org.freedesktop.DBus", /* interface */
|
||||
DBUS_SERVICE_DBUS,
|
||||
DBUS_PATH_DBUS,
|
||||
DBUS_INTERFACE_DBUS,
|
||||
"GetNameOwner",
|
||||
g_variant_new ("(s)",
|
||||
proxy->priv->name),
|
||||
@@ -1594,9 +1594,9 @@ async_init_call_start_service_by_name (GTask *task)
|
||||
GDBusProxy *proxy = g_task_get_source_object (task);
|
||||
|
||||
g_dbus_connection_call (proxy->priv->connection,
|
||||
"org.freedesktop.DBus", /* name */
|
||||
"/org/freedesktop/DBus", /* object path */
|
||||
"org.freedesktop.DBus", /* interface */
|
||||
DBUS_SERVICE_DBUS,
|
||||
DBUS_PATH_DBUS,
|
||||
DBUS_INTERFACE_DBUS,
|
||||
"StartServiceByName",
|
||||
g_variant_new ("(su)",
|
||||
proxy->priv->name,
|
||||
|
||||
Reference in New Issue
Block a user