From e84c3a03b3be9cfc351ca8e0b9b935cca455e672 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 10 Apr 2003 11:04:24 +0000 Subject: 2003-04-10 Alexander Larsson * dbus/dbus-marshal.[ch]: Add array_type_pos argument to _dbus_marshal_validate_arg. Let you pass a NULL end_pos to _dbus_marshal_validate_type. * dbus/dbus-message.[ch]: Multi-dimensional arrays have full type specification in the outermost array. Iter code re-arranged to handle this. Added some more iter tests. * doc/dbus-specification.sgml: Add me to authors. Remove old FIXME. Update new array encoding description. Correct DBUS_SERVICE_FLAGS_REPLACE_EXISTING description. * test/data/invalid-messages/array-with-mixed-types.message: * test/data/valid-messages/array-of-array-of-uint32.message: Change to the new array format. * test/data/invalid-messages/too-short-dict.message: Fix bug in test. * test/data/valid-messages/recursive-types.message: Fix up and extend test. --- doc/dbus-specification.sgml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'doc') diff --git a/doc/dbus-specification.sgml b/doc/dbus-specification.sgml index 5a7a80fa..0bbc3cda 100644 --- a/doc/dbus-specification.sgml +++ b/doc/dbus-specification.sgml @@ -10,6 +10,7 @@ Havoc Pennington + Red Hat, Inc
hp@pobox.com
@@ -25,6 +26,16 @@
+ + Alexander + Larsson + + Red Hat, Inc +
+ alexl@redhat.com +
+
+
@@ -283,9 +294,6 @@ in a type-dependent format. - [FIXME perhaps we should add type BYTE with the primary - advantage being that it occupies 1 byte vs. 7 for UINT32, - or perhaps space savings aren't worth the complexity] @@ -307,7 +315,7 @@ BYTE 2 - 8-bit unsigned integer. + 8-bit unsigned integer BOOLEAN 3 @@ -365,10 +373,10 @@ by the type code of the next argument. BYTE - a byte. + A byte. BOOLEAN - a byte, with valid values 0 and 1. + A byte, with valid values 0 and 1. INT32 32-bit signed integer in the message's byte order, aligned to 4-byte boundary. @@ -393,11 +401,13 @@ ARRAY - a byte giving the element type of the array followed - by an UINT32 (aligned to 4 bytes) giving the length of the - array data in bytes. This is then followed by a number of - entries with the same type, encoded like that type normally - would be encoded alone. + A sequence of bytes giving the element type of the array, terminated + by a type different from ARRAY (just one byte for one-dimensional arrays, but + larger for multi-dimensional arrays), followed by an UINT32 (aligned to 4 bytes) + giving the length of the array data in bytes. This is followed by each array entry + encoded the way it would normally be encoded, except arrays, which are encoded + without the type information, since that is already declared above. Arrays containing + NIL are not allowed. DICT @@ -1524,7 +1534,9 @@ DBUS_SERVICE_FLAGS_REPLACE_EXISTING 0x2 - Only become the owner of the service if there is no current owner. + Try to replace the current owner if there is one. If this flag + is not set the application will only become the owner of the service if + there is no current owner. -- cgit