MINOR: trace: add a trace_no_cb() dummy callback for when to use no callback
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jan 2023 17:03:07 +0000 (18:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jan 2023 14:49:43 +0000 (15:49 +0100)
commit4b36d5e8de50f729f5bfe10667c1f9138f756c11
tree0a0aa32147f4894ca60ad72470ae3ae292578c2c
parent8f9a9704bb7f76d3266ef6cc1ff126236e96f119
MINOR: trace: add a trace_no_cb() dummy callback for when to use no callback

By default, passing a NULL cb to the trace functions will result in the
source's default one to be used. For some cases we won't want to use any
callback at all, not event the default one. Let's define a trace_no_cb()
function for this, that does absolutely nothing.
include/haproxy/trace.h
src/trace.c