]> git.kaiwu.me - haproxy.git/commit
MINOR: cfgparse: Add functions to backup and restore registered sections
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Oct 2016 09:09:44 +0000 (11:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 21:56:59 +0000 (22:56 +0100)
commit7110b40d0686441f6212af65b3a046623eb6fb49
treeea4ab9bce77e8c40bfff1cf4d72768e29109feea
parentfcd99f8eecc28af8aa451ea879627264166f8d23
MINOR: cfgparse: Add functions to backup and restore registered sections

This feature will be used by the stream processing offload engine (SPOE) to
parse dedicated configuration files without mixing HAProxy sections with SPOE
sections.

So, here we can back up all sections known by HAProxy, unregister all of them
and add new ones, dedicted to the SPOE. Once the SPOE configuration file parsed,
we can roll back all changes by restoring HAProxy sections.
include/common/cfgparse.h
src/cfgparse.c