chiark / gitweb /
libsystemd-bus: catch up with latest kdbus changes
authorDaniel Mack <zonque@gmail.com>
Tue, 3 Dec 2013 00:56:13 +0000 (01:56 +0100)
committerDaniel Mack <zonque@gmail.com>
Tue, 3 Dec 2013 00:56:20 +0000 (01:56 +0100)
src/libsystemd-bus/bus-control.c
src/libsystemd-bus/bus-kernel.c
src/libsystemd-bus/kdbus.h

index 6f0bf06..aaddb7d 100644 (file)
@@ -182,7 +182,7 @@ _public_ int sd_bus_list_names(sd_bus *bus, char ***l) {
                 if (!cmd)
                         return -ENOMEM;
 
-                cmd->flags = KDBUS_NAME_LIST_UNIQUE_NAMES;
+                cmd->flags = KDBUS_NAME_LIST_UNIQUE | KDBUS_NAME_LIST_NAMES;
 
                 r = ioctl(sd_bus_get_fd(bus), KDBUS_CMD_NAME_LIST, cmd);
                 if (r < 0)
index 76a55c7..ca36eb8 100644 (file)
@@ -830,7 +830,7 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) {
         if (!m->destination) {
                 if (destination)
                         m->destination = destination;
-                else if (k->dst_id != KDBUS_DST_ID_WELL_KNOWN_NAME &&
+                else if (k->dst_id != KDBUS_DST_ID_NAME &&
                          k->dst_id != KDBUS_DST_ID_BROADCAST) {
                         snprintf(m->destination_buffer, sizeof(m->destination_buffer), ":1.%llu", (unsigned long long) k->dst_id);
                         m->destination = m->destination_buffer;
index 98f513f..09a73fa 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,9 +444,10 @@ 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,
 };
 
 /**