MINOR: haproxy: add a registration for post-check functions

There's a significant amount of late initialization calls which are
performed after the point where we exit in check mode. These calls
are used to allocate resource and perform certain slow operations.
Let's have a way to register some functions which need to be called
there instead of having this multitude of #ifdef in the init path.
This commit is contained in:
Willy Tarreau
2016-12-21 19:57:00 +01:00
parent e8692b41e5
commit e694573fa0
2 changed files with 35 additions and 0 deletions

View File

@@ -265,6 +265,7 @@ static inline int already_warned(unsigned int warning)
}
void hap_register_build_opts(const char *str, int must_free);
void hap_register_post_check(int (*fct)());
#endif /* _TYPES_GLOBAL_H */