X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=configfile.h;h=c655274d5af8383a27c2796966e4fa0c51353c04;hp=c7863a7d602a4eb0c46ae738b919043b53a57a45;hb=9f08a817761251fa1c0070e3c03558ddfda5a162;hpb=ca61ab9737a563adac6436de4fe35243b40345ef;ds=sidebyside diff --git a/configfile.h b/configfile.h index c7863a7..c655274 100644 --- a/configfile.h +++ b/configfile.h @@ -47,6 +47,19 @@ #define REGEX_CONFIG2_FLAGS REG_EXTENDED|REG_NEWLINE +struct swb_config_line { + /* Whether or not the line has been parsed */ + int parsed; + /* If parsed, the config key; otherwise, the entire line */ + char *key; + /* If parsed, the config value */ + char *value; +}; + FILE *open_config_file(void); +int parse_config_file_begin(void); +void parse_config_file_end(void); +int parse_config_file_line(FILE *fp, struct swb_config_line *line); + #endif /* _CONFIGFILE_H */