summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-07-29 17:43:30 +0000
committerHavoc Pennington <hp@redhat.com>2005-07-29 17:43:30 +0000
commit51a4261d0ee74afbb95611e7474715a754db97bb (patch)
tree11eaebc45c1e65c2c4a4bd2e8f99e5dae874c43b /dbus
parent6e4af28a9b1ea6797dcdb8679ac7d081c708861f (diff)
2005-07-29 Havoc Pennington <hp@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
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h
index fe51008d..ba5e2730 100644
--- a/dbus/dbus-protocol.h
+++ b/dbus/dbus-protocol.h
@@ -115,6 +115,11 @@ extern "C" {
*/
#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