mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +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
@@ -28,18 +28,9 @@
|
||||
|
||||
#include <gio/gio.h>
|
||||
|
||||
#include "gdbusprivate.h"
|
||||
#include "gdbus-tests.h"
|
||||
|
||||
#ifdef HAVE_DBUS1
|
||||
# include <dbus/dbus-shared.h>
|
||||
#else
|
||||
# define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
|
||||
# define DBUS_PATH_DBUS "/org/freedesktop/DBus"
|
||||
# define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
|
||||
# define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER 1
|
||||
# define DBUS_RELEASE_NAME_REPLY_RELEASED 1
|
||||
#endif
|
||||
|
||||
#define MY_NAME "com.example.Test.Myself"
|
||||
/* This many threads create and destroy GDBusProxy instances, in addition
|
||||
* to the main thread processing their NameOwnerChanged signals.
|
||||
|
Reference in New Issue
Block a user