From e84e55b3546b1d11b901270e81db0fd7f6159bfe Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 26 Apr 2011 17:37:21 +0100 Subject: [PATCH 1/8] Upgrade the type system into its own top-level section of the spec The type system can be used independently, for instance in GVariant (although GVariant's binary encoding is in fact not the same). --- doc/dbus-specification.xml | 49 ++++++++++++++++++++++++++----------------- 1 files changed, 30 insertions(+), 19 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 4bd0cb3..54f9049 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -264,27 +264,13 @@ - - Message Protocol - - - A message consists of a - header and a body. If you - think of a message as a package, the header is the address, and the body - contains the package contents. The message delivery system uses the header - information to figure out where to send the message and how to interpret - it; the recipient interprets the body of the message. - - - - The body of the message is made up of zero or more - arguments, which are typed values, such as an - integer or a byte array. - + + Type System - Both header and body use the same type system and format for - serializing data. Each type of value has a wire format. + D-Bus has a type system, in which values of various types can be + serialized into a sequence of bytes referred to as the + wire format in a standard way. Converting a value from some other representation into the wire format is called marshaling and converting it back from the wire format is unmarshaling. @@ -843,6 +829,31 @@ + + + + Message Protocol + + + A message consists of a + header and a body. If you + think of a message as a package, the header is the address, and the body + contains the package contents. The message delivery system uses the header + information to figure out where to send the message and how to interpret + it; the recipient interprets the body of the message. + + + + The body of the message is made up of zero or more + arguments, which are typed values, such as an + integer or a byte array. + + + + Both header and body use the D-Bus type + system and format for serializing data. + + Message Format -- 1.7.5.4