summaryrefslogtreecommitdiffstats
path: root/bus/config-parser.c
diff options
context:
space:
mode:
authorOlivier Andrieu <oliv__a@users.sourceforge.net>2004-08-25 08:03:12 +0000
committerOlivier Andrieu <oliv__a@users.sourceforge.net>2004-08-25 08:03:12 +0000
commit8a2c91b8a549402040c94b45b063311975583efd (patch)
treedb6c3cf53c0478649f7a6e254de3e14acb5b49b4 /bus/config-parser.c
parent83c224e3d091a12c6e7041aaba59550372bd11bd (diff)
* bus/config-parser.c (set_limit):
* bus/dbus-daemon-1.1.in: * test/data/valid-config-files/many-rules.conf: set the max_match_rules_per_connection limt from the config file. * doc/busconfig.dtd: update the DTD. * bus/driver.c: remove some unused variables.
Diffstat (limited to 'bus/config-parser.c')
-rw-r--r--bus/config-parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bus/config-parser.c b/bus/config-parser.c
index f276fb52..3b8c3ae4 100644
--- a/bus/config-parser.c
+++ b/bus/config-parser.c
@@ -1640,6 +1640,12 @@ set_limit (BusConfigParser *parser,
must_be_int = TRUE;
parser->limits.max_services_per_connection = value;
}
+ else if (strcmp (name, "max_match_rules_per_connection") == 0)
+ {
+ must_be_positive = TRUE;
+ must_be_int = TRUE;
+ parser->limits.max_match_rules_per_connection = value;
+ }
else if (strcmp (name, "max_replies_per_connection") == 0)
{
must_be_positive = TRUE;