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:
Simon McVittie
2024-05-13 12:55:04 +01:00
committed by Philip Withnall
parent b0e8612a3b
commit 7401577074
8 changed files with 32 additions and 47 deletions

View File

@@ -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);
}