dbus/dbus dbus-protocol.h,1.44,1.45
Havoc Pennington
hp at freedesktop.org
Sat Jul 30 03:43:32 EST 2005
Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv17474/dbus
Modified Files:
dbus-protocol.h
Log Message:
2005-07-29 Havoc Pennington <hp at redhat.com>
* bus/signals.c (bus_signals_test): add match_rule_equal() tests
(match_rule_matches): remove unused arg
(test_matching): add tests for match_rule_matches()
* bus/signals.c (bus_match_rule_parse_arg_match): add ability to
do arg0='foo' arg5='bar' in the match rules
(match_rule_matches): don't match if the arg0='foo' doesn't match.
* dbus/dbus-protocol.h (DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER): add this
Index: dbus-protocol.h
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-protocol.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- dbus-protocol.h 16 Jul 2005 17:34:08 -0000 1.44
+++ dbus-protocol.h 29 Jul 2005 17:43:30 -0000 1.45
@@ -115,6 +115,11 @@
*/
#define DBUS_MAXIMUM_MATCH_RULE_LENGTH 1024
+/* Max arg number you can match on in a match rule, e.g.
+ * arg0='hello' is OK, arg3489720987='hello' is not
+ */
+#define DBUS_MAXIMUM_MATCH_RULE_ARG_NUMBER 63
+
/* Max length of a marshaled array in bytes (64M, 2^26) We use signed
* int for lengths so must be INT_MAX or less. We need something a
* bit smaller than INT_MAX because the array is inside a message with
More information about the dbus-commit
mailing list