chiark / gitweb /
sd-bus: move packet header definition to bus-protocol.h
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Nov 2014 20:12:03 +0000 (21:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Nov 2014 20:12:03 +0000 (21:12 +0100)
src/libsystemd/sd-bus/bus-message.h
src/libsystemd/sd-bus/bus-protocol.h

index e54543a..571d422 100644 (file)
@@ -52,20 +52,6 @@ struct bus_container {
         char *peeked_signature;
 };
 
-struct bus_header {
-        uint8_t endian;
-        uint8_t type;
-        uint8_t flags;
-        uint8_t version;
-        uint32_t body_size;
-
-        /* Note that what the bus spec calls "serial" we'll call
-        "cookie" instead, because we don't want to imply that the
-        cookie was in any way monotonically increasing. */
-        uint32_t serial;
-        uint32_t fields_size;
-} _packed_;
-
 struct bus_body_part {
         struct bus_body_part *next;
         void *data;
index 75c6ded..6431dfb 100644 (file)
 
 #include <endian.h>
 
+/* Packet header */
+
+struct bus_header {
+        uint8_t endian;
+        uint8_t type;
+        uint8_t flags;
+        uint8_t version;
+        uint32_t body_size;
+
+        /* Note that what the bus spec calls "serial" we'll call
+        "cookie" instead, because we don't want to imply that the
+        cookie was in any way monotonically increasing. */
+        uint32_t serial;
+        uint32_t fields_size;
+} _packed_;
+
 /* Endianness */
 
 enum {