summaryrefslogtreecommitdiffstats
path: root/discover/parser-utils.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-03-25 12:35:56 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-30 20:20:11 +1100
commit5472ed16df5642aedc124a1b49a35d99da98cc37 (patch)
tree8a0000146473f0dc1f88196f227ad48115641012 /discover/parser-utils.h
parentff7fa9c37c952d0df20ba73f3109182c01347f2e (diff)
downloadtalos-petitboot-5472ed16df5642aedc124a1b49a35d99da98cc37.tar.gz
talos-petitboot-5472ed16df5642aedc124a1b49a35d99da98cc37.zip
Split common routines from kboot parser
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 <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/parser-utils.h')
-rw-r--r--discover/parser-utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/parser-utils.h b/discover/parser-utils.h
index 955f5f4..781867c 100644
--- a/discover/parser-utils.h
+++ b/discover/parser-utils.h
@@ -1,6 +1,7 @@
#ifndef PARSER_UTILS_H
#define PARSER_UTILS_H
+#include "pb-protocol/pb-protocol.h"
#include "parser.h"
#define streq(a,b) (!strcasecmp((a),(b)))
OpenPOWER on IntegriCloud