]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pattern: The function pattern_exec_match() returns "struct pattern" if the...
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 17 Jan 2014 14:25:13 +0000 (15:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:06:07 +0000 (18:06 +0100)
commit1794fdf37eb4f5d463e866c5aee5233f38157988
tree31268dbc66979e69fe17cb89f3d578d9e0491aba
parent1432a0c5db8af09f51ce2bd75f3a8ecda266aee9
MEDIUM: pattern: The function pattern_exec_match() returns "struct pattern" if the patten match.

Before this commit, the pattern_exec_match() function returns the
associate sample, the associate struct pattern or the associate struct
pattern_tree. This is complex to use, because we can check the type of
information returned.

Now the function return always a "struct pattern". If <fill> is not set,
only the value of the pointer can be used as boolean (NULL or other). If
<fill> is set, you can use the <smp> pointer and the pattern
information.

If information must be duplicated, it is stored in trash buffer.
Otherwise, the pattern can point on existing strings.
include/proto/pattern.h
src/acl.c
src/dumpstats.c
src/map.c
src/pattern.c