]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: introduce log_orig flags
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 23 Sep 2024 15:22:45 +0000 (17:22 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 26 Sep 2024 14:53:07 +0000 (16:53 +0200)
commit3c15ee05e9371cec2d0c70754c92afd55ae43233
tree26a909dc1eaf5a1ed89a4371d391222346513ca0
parent6567e3768013e3dc489ef9f311b9af999a884eda
MINOR: log: introduce log_orig flags

Rename 'enum log_orig' to 'enum log_orig_id', since this enum specifically
contains the log origin ids.

Add 'struct log_orig' which wraps 'enum log_orig' with optional flags
(no flags defined for now).

Add log_orig() helper func that takes id and flags as parameter and
returns log_orig struct initialized with input arguments.

Update functions taking log origin as parameter so they explicitly take
log orig id or log orig wrapper as argument depending on the level of
context expected by the function.
include/haproxy/log-t.h
include/haproxy/log.h
include/haproxy/stream-t.h
src/cli.c
src/frontend.c
src/http_ana.c
src/log.c
src/stream.c