[systemd-commits] src/libsystemd

Lennart Poettering lennart at kemper.freedesktop.org
Fri Nov 28 12:12:29 PST 2014


 src/libsystemd/sd-bus/bus-message.h  |   14 --------------
 src/libsystemd/sd-bus/bus-protocol.h |   16 ++++++++++++++++
 2 files changed, 16 insertions(+), 14 deletions(-)

New commits:
commit 22d097a6bbeac0d45c42e1b246403a97e9a16c30
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Nov 28 21:12:03 2014 +0100

    sd-bus: move packet header definition to bus-protocol.h

diff --git a/src/libsystemd/sd-bus/bus-message.h b/src/libsystemd/sd-bus/bus-message.h
index e54543a..571d422 100644
--- a/src/libsystemd/sd-bus/bus-message.h
+++ b/src/libsystemd/sd-bus/bus-message.h
@@ -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;
diff --git a/src/libsystemd/sd-bus/bus-protocol.h b/src/libsystemd/sd-bus/bus-protocol.h
index 75c6ded..6431dfb 100644
--- a/src/libsystemd/sd-bus/bus-protocol.h
+++ b/src/libsystemd/sd-bus/bus-protocol.h
@@ -23,6 +23,22 @@
 
 #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 {



More information about the systemd-commits mailing list