]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: refactor defaults proxies API
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 22 Jan 2026 10:16:14 +0000 (11:16 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 22 Jan 2026 16:55:47 +0000 (17:55 +0100)
commit434e97904608b0ee97878363dd1124f1359659fc
treebfcc51dd1295f0e71110dd643ff9ecfbbb6a51b6
parent6c0ea1fe7318654550b3ad4370ebaeb4aeb02bda
MINOR: proxy: refactor defaults proxies API

This patch renames functions which deal with defaults section. A common
"defaults_px_" prefix is defined. This serves as a marker to identify
functions which can only be used with proxies defaults capability. New
BUG_ON() are enforced to ensure this is valid.

Also, older proxy_unref_or_destroy_defaults() is renamed
defaults_px_detach().
include/haproxy/proxy.h
src/cfgparse-listen.c
src/haproxy.c
src/proxy.c