]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] pattern: add support for argument parsers for converters
authorWilly Tarreau <w@1wt.eu>
Tue, 26 Jan 2010 16:58:06 +0000 (17:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jan 2010 17:01:35 +0000 (18:01 +0100)
commit9e92d327f7b6351d21ca4707ead8dc9aa914b398
tree8ee1f9a2a0dc3d2ddce40f6fbc4fcb1e87762e9e
parent2937c0dd20f2f3c0065b671bbfe3fafcd8862eaf
[MINOR] pattern: add support for argument parsers for converters

Some converters will need one or several arguments. It's not possible
to write a simple generic parser for that, so let's add the ability
for each converter to support its own argument parser, and call it
to get the arguments when it's specified. If unspecified, the arguments
are passed unmodified as string+len.
include/types/pattern.h
src/pattern.c