X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibsystemd%2Fsd-bus%2Fbus-protocol.h;h=6431dfbff847aea1232de15ca20203e2281f3a07;hp=75c6ded7285b7efaa14119310c093e8188d84b79;hb=22d097a6bbeac0d45c42e1b246403a97e9a16c30;hpb=46bcf49291874c5a6b5b34ad6413c5a0f7725f4c diff --git a/src/libsystemd/sd-bus/bus-protocol.h b/src/libsystemd/sd-bus/bus-protocol.h index 75c6ded72..6431dfbff 100644 --- a/src/libsystemd/sd-bus/bus-protocol.h +++ b/src/libsystemd/sd-bus/bus-protocol.h @@ -23,6 +23,22 @@ #include +/* 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 {