diff options
author | Havoc Pennington <hp@redhat.com> | 2004-06-07 19:27:51 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2004-06-07 19:27:51 +0000 |
commit | f7beca572b341c4cabf2f97a9f0d6d763e6acb40 (patch) | |
tree | 9e82c7e0ceedf9a97fa3e68175bd3170afc83900 /dbus/dbus-protocol.h | |
parent | 41a369c333a2b60deaed307c22c88395f4d12cf6 (diff) |
2004-06-07 Havoc Pennington <hp@redhat.com>
* dbus/dbus-message-builder.c (_dbus_message_data_load): append
random signature when using REQUIRED_FIELDS (this hack won't work
in the long term)
* dbus/dbus-message.c: change the signature to be a header field,
instead of message->signature special-case string. Incremental
step forward. Then we can fix up code to send the signature in the
message, then fix up code to validate said signature, then fix up
code to not put the typecodes inline, etc.
(load_one_message): don't make up the signature after the fact
(decode_header_data): require signature field for the known
message types
* dbus/dbus-marshal.c (_dbus_marshal_string_len): new
* dbus/dbus-protocol.h: add DBUS_HEADER_FIELD_SIGNATURE
Diffstat (limited to 'dbus/dbus-protocol.h')
-rw-r--r-- | dbus/dbus-protocol.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h index b07bd39b..75c9b22c 100644 --- a/dbus/dbus-protocol.h +++ b/dbus/dbus-protocol.h @@ -83,9 +83,10 @@ extern "C" { #define DBUS_HEADER_FIELD_REPLY_SERIAL 5 #define DBUS_HEADER_FIELD_DESTINATION 6 #define DBUS_HEADER_FIELD_SENDER 7 +#define DBUS_HEADER_FIELD_SIGNATURE 8 + +#define DBUS_HEADER_FIELD_LAST DBUS_HEADER_FIELD_SIGNATURE -#define DBUS_HEADER_FIELD_LAST DBUS_HEADER_FIELD_SENDER - /* Services */ #define DBUS_SERVICE_ORG_FREEDESKTOP_DBUS "org.freedesktop.DBus" |