mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02: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
@@ -37,9 +37,10 @@
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include "glib/glib-private.h"
|
||||
#include "gdbusprivate.h"
|
||||
#endif
|
||||
|
||||
#include "gdbusprivate.h"
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
/* Escape values for console colors */
|
||||
@@ -332,9 +333,9 @@ print_names (GDBusConnection *c,
|
||||
|
||||
error = NULL;
|
||||
result = g_dbus_connection_call_sync (c,
|
||||
"org.freedesktop.DBus",
|
||||
"/org/freedesktop/DBus",
|
||||
"org.freedesktop.DBus",
|
||||
DBUS_SERVICE_DBUS,
|
||||
DBUS_PATH_DBUS,
|
||||
DBUS_INTERFACE_DBUS,
|
||||
"ListNames",
|
||||
NULL,
|
||||
G_VARIANT_TYPE ("(as)"),
|
||||
@@ -356,9 +357,9 @@ print_names (GDBusConnection *c,
|
||||
|
||||
error = NULL;
|
||||
result = g_dbus_connection_call_sync (c,
|
||||
"org.freedesktop.DBus",
|
||||
"/org/freedesktop/DBus",
|
||||
"org.freedesktop.DBus",
|
||||
DBUS_SERVICE_DBUS,
|
||||
DBUS_PATH_DBUS,
|
||||
DBUS_INTERFACE_DBUS,
|
||||
"ListActivatableNames",
|
||||
NULL,
|
||||
G_VARIANT_TYPE ("(as)"),
|
||||
|
Reference in New Issue
Block a user