]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: add struct cfgfile to represent config in memory
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 5 Aug 2024 08:03:00 +0000 (10:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Aug 2024 16:41:41 +0000 (18:41 +0200)
commit70b842e847b4c39121c1a75bec7b60eb48298d0a
treee312b2eb1052a806b8ab6991ac2a4980412c16f8
parenta6d1eb8f5d81df0d18e0c9f07c6d199dc39f0893
MINOR: cfgparse: add struct cfgfile to represent config in memory

This and following commits serve to prepare loading configuration files in
memory, before parsing them, as we may need to parse some parts of
configuration in different moments of the startup sequence. This is a case of
the new master-worker initialization process. Here we need to read at first
only the global and the program sections and only after some steps
(forking worker, etc) the rest of the configuration.

Add a new structure cfgfile to keep configuration files metadata and content,
loaded somewhere in a memory. Instances of filled cfgfile structures could be
chained in a list, as the order in which they were loaded is important.
include/haproxy/cfgparse.h