path: root/discover/parser-conf.c
Commit message (Collapse)AuthorAgeFilesLines
* Add new member get_pair to conf parser contextGeoff Levand2012-03-181-1/+11
| | | | | | | | To allow parsers more control over finding paramerter pairs add a new member get_pair to the parser struct conf_context. Initialize get_pair=conf_get_pair_equal for existing parsers. Signed-off-by: Geoff Levand <>
* Refactor parser routine conf_get_param_pair()Geoff Levand2012-03-181-6/+17
| | | | | | | | Refactor conf_get_param_pair() and rename to conf_get_pair(). Add two new wrapper routines conf_get_pair_equal() and conf_get_pair_space(). Signed-off-by: Geoff Levand <>
* Add parser routine conf_replace_char()Geoff Levand2012-03-181-0/+16
| | | | Signed-off-by: Geoff Levand <>
* Zero parser globals before useGeoff Levand2009-07-091-2/+17
| | | | Signed-off-by: Geoff Levand <>
* Remove unneeded conf stripGeoff Levand2009-06-301-5/+0
| | | | | | | | conf_get_param_pair() already runs conf_strip_str() on value, so remove a redundent conf_strip_str() call. Signed-off-by: Geoff Levand <> Signed-off-by: Jeremy Kerr <>
* Split common routines from kboot parserGeoff Levand2009-03-301-0/+277
Pull out the common .conf file parsing logic from kboot-parser.c and into two new files parser-conf.h and parser-conf.c, and rework the kboot parser to use those common routines. The new common routines are based on a .conf file parser context struct conf_context. The specific parsers setup the context then call the main parsing entry routine conf_parse(). conf_parse() uses the context info to open and read .conf files and call parser specific callbacks to process name:value pairs and to add boot_option instances to the discover server. Signed-off-by: Geoff Levand <> Signed-off-by: Jeremy Kerr <>
OpenPOWER on IntegriCloud