From 593ed5ded504c9c87a6fc0b4843f257c9c9e40d3 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 14 Mar 2024 19:18:15 +0000 Subject: [PATCH] gdbusprivate: Add symbolic constants for the message bus itself Using these is a bit more clearly correct than repeating them everywhere. To avoid excessive diffstat in a branch for a bug fix, I'm not immediately replacing all existing occurrences of the same literals with these names. The names of these constants are chosen to be consistent with libdbus, despite using somewhat outdated terminology (D-Bus now uses the term "well-known bus name" for what used to be called a service name, reserving the word "service" to mean specifically the programs that have .service files and participate in service activation). Signed-off-by: Simon McVittie --- gio/gdbusprivate.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gio/gdbusprivate.h b/gio/gdbusprivate.h index 8f8a93ba7..e9bca11ca 100644 --- a/gio/gdbusprivate.h +++ b/gio/gdbusprivate.h @@ -29,6 +29,11 @@ G_BEGIN_DECLS +/* Bus name, interface and object path of the message bus itself */ +#define DBUS_SERVICE_DBUS "org.freedesktop.DBus" +#define DBUS_INTERFACE_DBUS DBUS_SERVICE_DBUS +#define DBUS_PATH_DBUS "/org/freedesktop/DBus" + /* ---------------------------------------------------------------------------------------------------- */ typedef struct GDBusWorker GDBusWorker;