chiark / gitweb /
bus: expose priority field of messages, in preparation for prioq support
[elogind.git] / src / libsystemd / sd-bus / bus-kernel.c
index f547ebf134c983b4d98c15e6645f1dcae3dce592..77ad5ca506869ea8db5ea0b965636bed4cc931b9 100644 (file)
@@ -260,6 +260,7 @@ static int bus_message_setup_kmsg(sd_bus *b, sd_bus_message *m) {
                 m->destination ? unique : KDBUS_DST_ID_BROADCAST;
         m->kdbus->payload_type = KDBUS_PAYLOAD_DBUS;
         m->kdbus->cookie = m->header->serial;
+        m->kdbus->priority = m->priority;
 
         if (m->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED)
                 m->kdbus->cookie_reply = m->reply_cookie;