chiark / gitweb /
sd-bus: sync kdbus.h (ABI break!)
authorDaniel Mack <daniel@zonque.org>
Thu, 2 Oct 2014 15:12:13 +0000 (17:12 +0200)
committerDaniel Mack <daniel@zonque.org>
Thu, 2 Oct 2014 15:15:39 +0000 (17:15 +0200)
struct kdbus_cmd_match got a flags field, which systemd currently makes no
use of.

src/libsystemd/sd-bus/kdbus.h

index c97994974b7882246c9d04fe689870f3d1fc8175..801125946bee639db2deab361138732bec7ed8e6 100644 (file)
@@ -713,6 +713,16 @@ struct kdbus_cmd_update {
        struct kdbus_item items[0];
 } __attribute__((aligned(8)));
 
+/**
+ * enum kdbus_cmd_match_flags - flags to control the KDBUS_CMD_MATCH_ADD ioctl
+ * @KDBUS_MATCH_REPLACE:       If entries with the supplied cookie already
+ *                             exists, remove them before installing the new
+ *                             matches.
+ */
+enum kdbus_cmd_match_flags {
+       KDBUS_MATCH_REPLACE     = 1ULL <<  0,
+};
+
 /**
  * struct kdbus_cmd_match - struct to add or remove matches
  * @size:              The total size of the struct
@@ -726,6 +736,7 @@ struct kdbus_cmd_update {
 struct kdbus_cmd_match {
        __u64 size;
        __u64 cookie;
+       __u64 flags;
        struct kdbus_item items[0];
 } __attribute__((aligned(8)));