chiark / gitweb /
dbus: fill in kdbus sender+destination from kdbus data
[elogind.git] / src / libsystemd-bus / bus-message.h
index 3d1bb623342904e750bbe89dd04b7f3e505b7481..8eea46baf17edb35d0b12553682d45db763dc91a 100644 (file)
@@ -28,6 +28,7 @@
 #include "macro.h"
 #include "sd-bus.h"
 #include "kdbus.h"
+#include "time-util.h"
 
 struct bus_container {
         char enclosing;
@@ -66,6 +67,8 @@ struct sd_bus_message {
         gid_t gid;
         pid_t pid;
         pid_t tid;
+        usec_t pid_starttime;
+        usec_t timestamp;
 
         bool sealed:1;
         bool dont_send:1;
@@ -99,6 +102,9 @@ struct sd_bus_message {
         char *peeked_signature;
 
         usec_t timeout;
+
+        char sender_buffer[3 + DECIMAL_STR_MAX(uint64_t) + 1];
+        char destination_buffer[3 + DECIMAL_STR_MAX(uint64_t) + 1];
 };
 
 #define BUS_MESSAGE_NEED_BSWAP(m) ((m)->header->endian != SD_BUS_NATIVE_ENDIAN)