#define DBUS_BUS_NAME "org.freedesktop.DBus"
#define DBUS_OBJECT_PATH "/org/freedesktop/DBus"
#define DBUS_INTERFACE_NAME DBUS_BUS_NAME
+#define DBUS_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties"
/*******************************************************************************
*
/***********************************************/
-#endif
\ No newline at end of file
+#endif
}
reply = g_dbus_connection_call_sync(dh->conn,
- "org.freedesktop.DBus",
- "/",
- "org.freedesktop.DBus",
+ DBUS_BUS_NAME,
+ DBUS_OBJECT_PATH,
+ DBUS_INTERFACE_NAME,
"ListQueuedOwners",
g_variant_new("(s)", bus_name),
NULL,
}
reply = g_dbus_connection_call_sync(conn,
- "org.freedesktop.DBus", "/", "org.freedesktop.DBus", "GetConnectionUnixProcessID",
+ DBUS_BUS_NAME, DBUS_OBJECT_PATH, DBUS_INTERFACE_NAME,
+ "GetConnectionUnixProcessID",
g_variant_new("(s)", sender), NULL,
G_DBUS_CALL_FLAGS_NONE,
DBUS_REPLY_TIMEOUT,
ret = gdbus_call_sync_with_reply("org.freedesktop.systemd1",
"/org/freedesktop/systemd1/unit/default_2etarget",
- "org.freedesktop.DBus.Properties",
+ DBUS_INTERFACE_PROPERTIES,
"Get",
g_variant_new("(ss)", "org.freedesktop.systemd1.Unit", "ActiveState"),
&reply);