mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 15:32:16 +02:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user