From: Aurelien DARRAGON Date: Wed, 29 May 2024 14:50:42 +0000 (+0200) Subject: MINOR: log: add logger flags X-Git-Tag: v3.1-dev1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33f3bec7eef3c5cf92e2180b3ee2abb3e4b99a1e;p=thirdparty%2Fhaproxy.git MINOR: log: add logger flags Logger struct may benefit from having a "flags" struct member to set or remove different logger states. For that, we reuse an existing 4 bytes hole in the logger struct to store a 2 bytes flags integer, leaving the struct with a 2-bytes hole now. --- diff --git a/include/haproxy/log-t.h b/include/haproxy/log-t.h index bbfc7cdc28..3e5b6900a5 100644 --- a/include/haproxy/log-t.h +++ b/include/haproxy/log-t.h @@ -231,10 +231,16 @@ struct log_target { uint16_t flags; }; +enum logger_flags { + LOGGER_FL_NONE = 0x00, +}; + struct logger { struct list list; struct log_target target; struct smp_info lb; + uint16_t flags; + /* 2 bytes hole */ enum log_fmt format; int facility; int level;