]> git.kaiwu.me - haproxy.git/commit
[MINOR] stream_interface: make use of an applet descriptor for IO handlers
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Feb 2011 12:16:36 +0000 (13:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2011 22:32:14 +0000 (23:32 +0100)
commitb24281b0ff25cc3c9125a29ff14488711ac033b8
tree96fdd9a326e4e4c258b8cffb0cafc25da480f990
parentdfd7fca26c6f0718ddc319433a4a0bc8f154a487
[MINOR] stream_interface: make use of an applet descriptor for IO handlers

I/O handlers are still delicate to manipulate. They have no type, they're
just raw functions which have no knowledge of themselves. Let's have them
declared as applets once for all. That way we can have multiple applets
share the same handler functions and we can store their names there. When
we later need to add more parameters (eg: usage stats), we'll be able to
do so in the applets themselves.

The CLI functions has been prefixed with "cli" instead of "stats" as it's
clearly what is going on there.

The applet descriptor in the stream interface should get all the applet
specific data (st0, ...) but this will be done in the next patch so that
we don't pollute this one too much.
include/proto/dumpstats.h
include/proto/stream_interface.h
include/types/stream_interface.h
src/dumpstats.c
src/peers.c
src/proto_http.c
src/session.c
src/stream_interface.c
src/stream_sock.c