chiark / gitweb /
bus: add support for adding memfds into message payload
[elogind.git] / src / libsystemd-bus / bus-message.h
index 2517514bac13168a034d4e5a61ef3a7cbb713460..f9c8fc9c0835930081f4fbe9113616c4865c9eda 100644 (file)
 struct bus_container {
         char enclosing;
 
-        char *signature;
         unsigned index, saved_index;
 
+        char *signature;
+
         uint32_t *array_size;
         size_t before, begin;
 };
@@ -51,13 +52,15 @@ struct bus_header {
 } _packed_;
 
 struct bus_body_part {
+        struct bus_body_part *next;
         void *data;
         size_t size;
         size_t mapped;
         int memfd;
         bool free_this:1;
+        bool munmap_this:1;
         bool sealed:1;
-        struct bus_body_part *next;
+        bool is_zero:1;
 };
 
 struct sd_bus_message {