summaryrefslogtreecommitdiff
path: root/include/haproxy
diff options
context:
space:
mode:
authorChristopher Faulet <cfaulet@haproxy.com>2023-05-05 10:59:39 +0200
committerChristopher Faulet <cfaulet@haproxy.com>2023-05-05 15:41:29 +0200
commitf4258bdf3b21f24a328bf0ae1407080faff2f109 (patch)
treeea5a661bf05e02d0d41072515e5b0ddf31a48ca9 /include/haproxy
parente8ee27b0fd8e98364e579f9efc9d0a7d6261b6ec (diff)
downloadhaproxy-f4258bdf3b21f24a328bf0ae1407080faff2f109.tar.gz
MINOR: stats: Use the applet API to write data
stats_putchk() is updated to use the applet API instead of the channel API to write data. To do so, the appctx is passed as parameter instead of the channel. This way, the applet does not need to take care to request more room it it fails to put data into the channel's buffer.
Diffstat (limited to 'include/haproxy')
-rw-r--r--include/haproxy/stats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/haproxy/stats.h b/include/haproxy/stats.h
index 90a4f51ef..f9e6d97e2 100644
--- a/include/haproxy/stats.h
+++ b/include/haproxy/stats.h
@@ -45,7 +45,7 @@ extern THREAD_LOCAL struct field info[];
extern THREAD_LOCAL struct field *stat_l[];
struct htx;
-int stats_putchk(struct channel *chn, struct htx *htx);
+int stats_putchk(struct appctx *appctx, struct htx *htx);
int stats_dump_one_line(const struct field *stats, size_t stats_count, struct appctx *appctx);