diff options
author | Dennis Kaarsemaker <dennis@kaarsemaker.net> | 2008-11-12 08:51:00 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2008-11-12 08:51:00 -0500 |
commit | 07a4ad4b04702fc384b324e5f902a5b2279b0c25 (patch) | |
tree | 048adb5d34138fa2b641a0d598d6aee2c3c287d8 /bus/config-parser-common.c | |
parent | e61f13cf328d131ddbd8b49842fcd0f49847dbff (diff) |
Bug 15393 - support allow_anonymous config variable
* bus/bus.c: Set allow_anonymous if specified from
parser.
* bus/config-parser.c: Parse it.
* bus/config-parser-common.h: Declare it.
Signed-off-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'bus/config-parser-common.c')
-rw-r--r-- | bus/config-parser-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bus/config-parser-common.c b/bus/config-parser-common.c index 1e0f7f91..a12642c4 100644 --- a/bus/config-parser-common.c +++ b/bus/config-parser-common.c @@ -118,6 +118,10 @@ bus_config_parser_element_name_to_type (const char *name) { return ELEMENT_KEEP_UMASK; } + else if (strcmp (name, "allow_anonymous") == 0) + { + return ELEMENT_ALLOW_ANONYMOUS; + } return ELEMENT_NONE; } @@ -168,6 +172,8 @@ bus_config_parser_element_type_to_name (ElementType type) return "associate"; case ELEMENT_KEEP_UMASK: return "keep_umask"; + case ELEMENT_ALLOW_ANONYMOUS: + return "allow_anonymous"; } _dbus_assert_not_reached ("bad element type"); |