summaryrefslogtreecommitdiffstats
path: root/doc/dbus-specification.sgml
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-08-02 03:39:35 +0000
committerHavoc Pennington <hp@redhat.com>2003-08-02 03:39:35 +0000
commit9c5d01f0fe1ba855c0f7518c4f27d75a609b8faa (patch)
tree02f260d9e19bbf2d3ec7fe5567ba10cd62bd4ad1 /doc/dbus-specification.sgml
parentfe195a911d86d0a71349988360de65cfac1b3f86 (diff)
2003-08-01 Havoc Pennington <hp@pobox.com>
* dbus/dbus-object-registry.c (_dbus_object_registry_handle_and_unlock): implement * dbus/dbus-message.c (dbus_message_get_type): new function * doc/dbus-specification.sgml: add "type" byte to messages
Diffstat (limited to 'doc/dbus-specification.sgml')
-rw-r--r--doc/dbus-specification.sgml58
1 files changed, 51 insertions, 7 deletions
diff --git a/doc/dbus-specification.sgml b/doc/dbus-specification.sgml
index 68a71cec..a53be53d 100644
--- a/doc/dbus-specification.sgml
+++ b/doc/dbus-specification.sgml
@@ -135,6 +135,12 @@
</row>
<row>
<entry>1 byte</entry>
+ <entry>Type of message. Unknown types MUST be ignored.
+ Currently-defined types are described below.
+ </entry>
+ </row>
+ <row>
+ <entry>1 byte</entry>
<entry>Bitwise OR of flags. Unknown flags
MUST be ignored. Currently-defined flags are described below.
</entry>
@@ -149,12 +155,6 @@
</entry>
</row>
<row>
- <entry>1 byte</entry>
- <entry>A nul byte, reserved for future use.
- Any value for this byte MUST be accepted.
- </entry>
- </row>
- <row>
<entry>4 bytes</entry>
<entry>An unsigned 32-bit integer in the
message's byte order, indicating the total length in bytes of
@@ -182,7 +182,44 @@
</informaltable>
</para>
<para>
- Flags that can appear in the second byte of the header:
+ Types that can appear in the second byte of the header:
+ <informaltable>
+ <tgroup cols=2>
+ <thead>
+ <row>
+ <entry>Decimal value</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>0</entry>
+ <entry>This is an invalid type, if seen in a message
+ the connection should be dropped immediately.</entry>
+ </row>
+ <row>
+ <entry>1</entry>
+ <entry>Method call.</entry>
+ </row>
+ </row>
+ <row>
+ <entry>2</entry>
+ <entry>Method reply with returned data.</entry>
+ </row>
+ <row>
+ <entry>3</entry>
+ <entry>Error.</entry>
+ </row>
+ <row>
+ <entry>4</entry>
+ <entry>Signal emission.</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ <para>
+ Flags that can appear in the third byte of the header:
<informaltable>
<tgroup cols=2>
<thead>
@@ -196,6 +233,13 @@
<entry>0x1</entry>
<entry>This message is an error reply. If the first argument exists and is a string, it is an error message.</entry>
</row>
+ <row>
+ <entry>0x2</entry>
+ <entry>This message does not expect method return replies or
+ error replies; the reply can be omitted as an
+ optimization. However, it is compliant with this specification
+ to return the reply despite this flag.</entry>
+ </row>
</tbody>
</tgroup>
</informaltable>