MINOR: global: define tainted flag
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 May 2021 14:18:45 +0000 (16:18 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 May 2021 12:12:27 +0000 (14:12 +0200)
commit484454d906adc747f178e7c5e8c09c2834f6162c
tree6b420749cce16e7ddf28ba49ae8c6b6124bb439c
parentea860837183c4800c97d6e8e7fb417d8f1ab2ef0
MINOR: global: define tainted flag

Add a global flag named 'tainted'. Its purpose is to report various
status about experimental features used for the current process
lifetime.

By default it is initialized to 0. It can be set/retrieve by a couple of
new functions mark_tainted()/get_tainted(). Once a flag is set, it
cannot be resetted.

Currently, no tainted status is implemented, it will be the subject of
the following commits.
include/haproxy/global.h
src/haproxy.c