diff options
author | Anders Carlsson <andersca@codefactory.se> | 2003-02-24 19:04:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@codefactory.se> | 2003-02-24 19:04:13 +0000 |
commit | c8769e0b1dde3f1c4ad40cd10dd89c284ecc672b (patch) | |
tree | 12d9e757f2ec9bb678114dfbcac28c3a05263f66 /doc/dbus-specification.sgml | |
parent | 2f38c959212d98e2194139daa9120fda37415b4f (diff) |
2003-02-24 Anders Carlsson <andersca@codefactory.se>
* 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.
Diffstat (limited to 'doc/dbus-specification.sgml')
-rw-r--r-- | doc/dbus-specification.sgml | 20 |
1 files changed, 12 insertions, 8 deletions
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: <informaltable> <tgroup cols=3> <thead> @@ -302,22 +298,30 @@ <entry>1</entry> <entry>Marks an "unset" or "nonexistent" argument</entry> </row><row> + <entry>BOOLEAN</entry> + <entry>2</entry> + <entry>Boolean value, 0 is FALSE and everything else is TRUE.</entry> + </row><row> <entry>INT32</entry> - <entry>2</entry> + <entry>3</entry> <entry>32-bit signed integer</entry> </row><row> <entry>UINT32</entry> - <entry>3</entry> + <entry>4</entry> <entry>32-bit unsigned integer</entry> </row><row> <entry>DOUBLE</entry> - <entry>4</entry> + <entry>5</entry> <entry>IEEE 754 double</entry> </row><row> <entry>STRING</entry> - <entry>5</entry> + <entry>6</entry> <entry>UTF-8 string (<emphasis>must</emphasis> be valid UTF-8)</entry> </row><row> + <entry>BOOLEAN_ARRAY</entry> + <entry>7</entry> + <entry>Array of BOOLEAN</entry> + </row><row> <entry>INT32_ARRAY</entry> <entry>6</entry> <entry>Array of INT32</entry> |