From 8d3793e33352fe573e05c3a12e33313c515e8d1f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 25 May 2011 18:03:01 +0100 Subject: [PATCH 2/8] Split Basic and Container types into subsections, promote "Type Signatures" to be an intro The "Type Signatures" subsection is basically an introduction to the type system, so it doesn't need a heading of its own. --- doc/dbus-specification.xml | 33 ++++++++++++++++++++++----------- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 54f9049..65a6686 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -276,18 +276,18 @@ it back from the wire format is unmarshaling. - - Type Signatures + + The D-Bus protocol does not include type tags in the marshaled data; a + block of marshaled values must have a known type + signature. The type signature is made up of type + codes. A type code is an ASCII character representing the + type of a value. Because ASCII characters are used, the type signature + will always form a valid ASCII string. A simple string compare + determines whether two type signatures are equivalent. + - - The D-Bus protocol does not include type tags in the marshaled data; a - block of marshaled values must have a known type - signature. The type signature is made up of type - codes. A type code is an ASCII character representing the - type of a value. Because ASCII characters are used, the type signature - will always form a valid ASCII string. A simple string compare - determines whether two type signatures are equivalent. - + + Basic types As a simple example, the type code for 32-bit integer (INT32) is @@ -307,6 +307,13 @@ INT32 in this example. To marshal and unmarshal basic types, you simply read one value from the data block corresponding to each type code in the signature. + + + + + Container types + + In addition to basic types, there are four container types: STRUCT, ARRAY, VARIANT, and DICT_ENTRY. @@ -419,6 +426,10 @@ In most languages, an array of dict entry would be represented as a map, hash table, or dict object. + + + + Summary of types The following table summarizes the D-Bus types. -- 1.7.5.4