[MEDIUM] config: split parser and checker in two functions
This is a first step towards support of multiple configuration files.
Now readcfgfile() only reads a file in memory and performs very minimal
parsing. The checks are performed afterwards.
diff --git a/include/common/cfgparse.h b/include/common/cfgparse.h
index 35e5614..3b376a0 100644
--- a/include/common/cfgparse.h
+++ b/include/common/cfgparse.h
@@ -64,6 +64,8 @@
int readcfgfile(const char *file);
void cfg_register_keywords(struct cfg_kw_list *kwl);
void cfg_unregister_keywords(struct cfg_kw_list *kwl);
+void init_default_instance();
+int check_config_validity();
#endif /* _COMMON_CFGPARSE_H */
diff --git a/include/proto/proxy.h b/include/proto/proxy.h
index adb16ce..8a2789d 100644
--- a/include/proto/proxy.h
+++ b/include/proto/proxy.h
@@ -40,7 +40,7 @@
const char *proxy_mode_str(int mode);
struct proxy *findproxy(const char *name, int mode, int cap);
struct server *findserver(const struct proxy *px, const char *name);
-int proxy_cfg_ensure_no_http(struct proxy *curproxy, const char *file);
+int proxy_cfg_ensure_no_http(struct proxy *curproxy);
/*
* This function returns a string containing the type of the proxy in a format