mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +02:00
gdbus: Move protocol constants from gdbusdaemon into gdbusprivate.h
These well-known flags and replies are part of the D-Bus Specification, and also exist with the same names in libdbus header files. Moving them into a private header means that unit tests like gdbus-proxy-threads and gdbus-subscribe don't have to reinvent them. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
b0e8612a3b
commit
7401577074
@@ -457,11 +457,11 @@ start_service_by_name_cb (GObject *source_object,
|
||||
guint32 start_service_result;
|
||||
g_variant_get (result, "(u)", &start_service_result);
|
||||
|
||||
if (start_service_result == 1) /* DBUS_START_REPLY_SUCCESS */
|
||||
if (start_service_result == DBUS_START_REPLY_SUCCESS)
|
||||
{
|
||||
invoke_get_name_owner (client);
|
||||
}
|
||||
else if (start_service_result == 2) /* DBUS_START_REPLY_ALREADY_RUNNING */
|
||||
else if (start_service_result == DBUS_START_REPLY_ALREADY_RUNNING)
|
||||
{
|
||||
invoke_get_name_owner (client);
|
||||
}
|
||||
|
Reference in New Issue
Block a user