From c8769e0b1dde3f1c4ad40cd10dd89c284ecc672b Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 24 Feb 2003 19:04:13 +0000 Subject: 2003-02-24 Anders Carlsson * dbus/dbus-internals.c: (_dbus_type_to_string): * dbus/dbus-marshal.c: (_dbus_marshal_get_arg_end_pos), (_dbus_marshal_validate_arg): * dbus/dbus-message-builder.c: (_dbus_message_data_load): * dbus/dbus-message.c: (dbus_message_append_args_valist), (dbus_message_append_boolean), (dbus_message_append_boolean_array), (dbus_message_get_args_valist), (dbus_message_iter_get_boolean), (dbus_message_iter_get_int32), (dbus_message_iter_get_uint32), (dbus_message_iter_get_double), (dbus_message_iter_get_boolean_array), (message_iter_test): * dbus/dbus-message.h: * dbus/dbus-protocol.h: * doc/dbus-specification.sgml: * test/data/valid-messages/lots-of-arguments.message: Add support for boolean and boolean array types. --- doc/dbus-specification.sgml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'doc/dbus-specification.sgml') diff --git a/doc/dbus-specification.sgml b/doc/dbus-specification.sgml index fa752cbe..1e494115 100644 --- a/doc/dbus-specification.sgml +++ b/doc/dbus-specification.sgml @@ -279,10 +279,6 @@ [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] - [FIXME perhaps we should add type BOOL with the primary - advantage being better type safety vs. overloading of - UINT32] - The type codes are as follows: @@ -302,22 +298,30 @@ 1 Marks an "unset" or "nonexistent" argument + BOOLEAN + 2 + Boolean value, 0 is FALSE and everything else is TRUE. + INT32 - 2 + 3 32-bit signed integer UINT32 - 3 + 4 32-bit unsigned integer DOUBLE - 4 + 5 IEEE 754 double STRING - 5 + 6 UTF-8 string (must be valid UTF-8) + BOOLEAN_ARRAY + 7 + Array of BOOLEAN + INT32_ARRAY 6 Array of INT32 -- cgit