dbus/test/data/valid-messages simplest-manual.message, 1.5, 1.6 standard-acquire-service.message, 1.3, 1.4 standard-hello.message, 1.3, 1.4 standard-list-services.message, 1.3, 1.4 standard-service-exists.message, 1.3, 1.4

Havoc Pennington hp at pdx.freedesktop.org
Mon Jun 7 12:27:53 PDT 2004


Update of /cvs/dbus/dbus/test/data/valid-messages
In directory pdx:/tmp/cvs-serv12543/test/data/valid-messages

Modified Files:
	simplest-manual.message standard-acquire-service.message 
	standard-hello.message standard-list-services.message 
	standard-service-exists.message 
Log Message:
2004-06-07  Havoc Pennington  <hp at 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



Index: simplest-manual.message
===================================================================
RCS file: /cvs/dbus/dbus/test/data/valid-messages/simplest-manual.message,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- a/simplest-manual.message	30 Sep 2003 02:33:09 -0000	1.5
+++ b/simplest-manual.message	7 Jun 2004 19:27:51 -0000	1.6
@@ -20,6 +20,9 @@
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD SIGNATURE
+TYPE STRING
+STRING ''
 
 ALIGN 8
 END_LENGTH Header

Index: standard-acquire-service.message
===================================================================
RCS file: /cvs/dbus/dbus/test/data/valid-messages/standard-acquire-service.message,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/standard-acquire-service.message	25 Apr 2004 15:50:23 -0000	1.3
+++ b/standard-acquire-service.message	7 Jun 2004 19:27:51 -0000	1.4
@@ -13,6 +13,9 @@
 HEADER_FIELD DESTINATION
 TYPE STRING
 STRING 'org.freedesktop.DBus'
+HEADER_FIELD SIGNATURE
+TYPE STRING
+STRING 'su'
 ALIGN 8
 END_LENGTH Header
 START_LENGTH Body

Index: standard-hello.message
===================================================================
RCS file: /cvs/dbus/dbus/test/data/valid-messages/standard-hello.message,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/standard-hello.message	25 Apr 2004 15:50:23 -0000	1.3
+++ b/standard-hello.message	7 Jun 2004 19:27:51 -0000	1.4
@@ -13,6 +13,9 @@
 HEADER_FIELD DESTINATION
 TYPE STRING
 STRING 'org.freedesktop.DBus'
+HEADER_FIELD SIGNATURE
+TYPE STRING
+STRING ''
 ALIGN 8
 END_LENGTH Header
 START_LENGTH Body

Index: standard-list-services.message
===================================================================
RCS file: /cvs/dbus/dbus/test/data/valid-messages/standard-list-services.message,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/standard-list-services.message	25 Apr 2004 15:50:23 -0000	1.3
+++ b/standard-list-services.message	7 Jun 2004 19:27:51 -0000	1.4
@@ -13,6 +13,9 @@
 HEADER_FIELD DESTINATION
 TYPE STRING
 STRING 'org.freedesktop.DBus'
+HEADER_FIELD SIGNATURE
+TYPE STRING
+STRING ''
 ALIGN 8
 END_LENGTH Header
 START_LENGTH Body

Index: standard-service-exists.message
===================================================================
RCS file: /cvs/dbus/dbus/test/data/valid-messages/standard-service-exists.message,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/standard-service-exists.message	25 Apr 2004 15:50:23 -0000	1.3
+++ b/standard-service-exists.message	7 Jun 2004 19:27:51 -0000	1.4
@@ -13,6 +13,9 @@
 HEADER_FIELD DESTINATION
 TYPE STRING
 STRING 'org.freedesktop.DBus'
+HEADER_FIELD SIGNATURE
+TYPE STRING
+STRING 's'
 ALIGN 8
 END_LENGTH Header
 START_LENGTH Body




More information about the dbus-commit mailing list