Config file parser for lists
Russ Allbery
rra at stanford.edu
Fri Mar 27 00:51:23 UTC 2009
Julien ÉLIE <julien at trigofacile.com> writes:
> The configuration file parser currently recognizes, as far as I can tell
> from innconf.c, booleans, strings and integers.
> The documentation also speaks about lists:
>
> parameter: [ string string ... ]
>
> Has anyone written the parser for such lists? (so that I could use it
> for instance to parse overview fields)
Yeah, it should be there already and work. config_param_list will hand
you a vector with the members of the list when you ask for a key that was
set that way. I just never ended up using it for inn.conf, but the
library code was all written and the test suite verifies it.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list