]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: proxy: make the proxy lookup functions more user-friendly
authorWilly Tarreau <w@1wt.eu>
Tue, 26 May 2015 09:24:42 +0000 (11:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 May 2015 09:24:42 +0000 (11:24 +0200)
commit9e0bb1013eae4e63808643a6019b095ff0445a3c
tree19a5ebe577bb4eb1fe54219ba920a49c355cd3b7
parente45288c0caae2595ed94b16743e3df72a19ca969
CLEANUP: proxy: make the proxy lookup functions more user-friendly

First, findproxy() was renamed proxy_find_by_name() so that its explicit
that a name is required for the lookup. Second, we give this function
the ability to search for tables if needed. Third we now provide inline
wrappers to pass the appropriate PR_CAP_* flags and to explicitly look
up a frontend, backend or table.
include/proto/proxy.h
src/cfgparse.c
src/dumpstats.c
src/hlua.c
src/proxy.c
src/sample.c
src/stream.c