From: Simon McVittie Date: Wed, 25 May 2011 17:03:01 +0000 (+0100) Subject: Split Basic and Container types into subsections, promote "Type Signatures" to be... X-Git-Tag: dbus-1.7.0~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8624dbec2d4ed866da31eb06e2f0aff5bc9496e6;p=platform%2Fupstream%2Fdbus.git 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. Reviewed-by: Will Thompson Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38252 --- diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index d806b8ea..3828db7f 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -292,18 +292,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 @@ -323,6 +323,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. @@ -435,6 +442,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.