chiark / gitweb /
bus: make sd_bus_request_name() and sd_bus_release_name() behave more like other...
[elogind.git] / src / libsystemd-bus / kdbus.h
index 98f513fd6f6e7edc3ef1975d44481202a2e0433b..1a294f61d1fc1c00ab359ea4c80fe8d051651ea8 100644 (file)
@@ -22,7 +22,7 @@
 
 #define KDBUS_IOC_MAGIC                        0x95
 #define KDBUS_SRC_ID_KERNEL            (0)
-#define KDBUS_DST_ID_WELL_KNOWN_NAME   (0)
+#define KDBUS_DST_ID_NAME              (0)
 #define KDBUS_MATCH_SRC_ID_ANY         (~0ULL)
 #define KDBUS_DST_ID_BROADCAST         (~0ULL)
 
@@ -444,13 +444,15 @@ struct kdbus_cmd_name {
 
 /* KDBUS_CMD_NAME_LIST */
 enum {
-       KDBUS_NAME_LIST_UNIQUE_NAMES            = 1 <<  0,
-       KDBUS_NAME_LIST_STARTERS_ONLY           = 1 <<  1,
-       KDBUS_NAME_LIST_QUEUED_OWNERS           = 1 <<  2,
+       KDBUS_NAME_LIST_UNIQUE          = 1 <<  0,
+       KDBUS_NAME_LIST_NAMES           = 1 <<  1,
+       KDBUS_NAME_LIST_STARTERS        = 1 <<  2,
+       KDBUS_NAME_LIST_QUEUED          = 1 <<  3,
 };
 
 /**
  * struct kdbus_cmd_name_list - request a list of name entries
+ * @size       Total size of the struct
  * @flags:     Flags for the query (KDBUS_NAME_LIST_*)
  * @offset:    The returned offset in the caller's pool buffer.
  *             The user must use KDBUS_CMD_FREE to free the
@@ -462,6 +464,7 @@ enum {
  * Refer to the documentation for more information.
  */
 struct kdbus_cmd_name_list {
+       __u64 size;
        __u64 flags;
        __u64 offset;
        char name[0];