X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fconf-parser.h;h=b3b2915d412abf0e69978aefcfc2149abcbf171d;hp=bea2a8e9be457f5cb1039bcee0eb301bb2abcf9c;hb=4eab639f92c0e4fa1a1baee5575bf3bc21810dcf;hpb=e99e38bbdcca3fe5956823bdb3d38544ccf93221 diff --git a/src/conf-parser.h b/src/conf-parser.h index bea2a8e9b..b3b2915d4 100644 --- a/src/conf-parser.h +++ b/src/conf-parser.h @@ -23,6 +23,7 @@ ***/ #include +#include /* An abstract parser for simple, line based, shallow configuration * files consisting of variable assignments only. */ @@ -40,7 +41,7 @@ typedef struct ConfigItem { /* The configuration file parsing routine. Expects a table of * config_items in *t that is terminated by an item where lvalue is * NULL */ -int config_parse(const char *filename, FILE *f, const char* const * sections, const ConfigItem *t, void *userdata); +int config_parse(const char *filename, FILE *f, const char* const *sections, const ConfigItem *t, bool relaxed, void *userdata); /* Generic parsers */ int config_parse_int(const char *filename, unsigned line, const char *section, const char *lvalue, const char *rvalue, void *data, void *userdata);