mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 08:28:43 +02:00
GDBus: Introduce G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL
This is preferable to the current magical solution whereby the serial is only rewritten if non-zero. In particular, it makes it easier to send the same message on multiple connections without having to reset the serial number. Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -1155,14 +1155,18 @@ typedef enum /*< flags >*/
|
||||
/**
|
||||
* GDBusSendMessageFlags:
|
||||
* @G_DBUS_SEND_MESSAGE_FLAGS_NONE: No flags set.
|
||||
* @G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: Do not automatically
|
||||
* assign a serial number from the #GDBusConnection object when
|
||||
* sending a message.
|
||||
*
|
||||
* Flags used when sending #GDBusMessage<!-- -->s on a #GDBusConnection.
|
||||
*
|
||||
* Since: 2.26
|
||||
*/
|
||||
typedef enum /*< flags >*/
|
||||
typedef enum
|
||||
{
|
||||
G_DBUS_SEND_MESSAGE_FLAGS_NONE = 0,
|
||||
G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL = (1<<0)
|
||||
} GDBusSendMessageFlags;
|
||||
|
||||
G_END_DECLS
|
||||
|
Reference in New Issue
Block a user