]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: stream interface: remove the ->release function pointer
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2013 18:10:45 +0000 (20:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:22 +0000 (15:40 +0100)
commit4a59f2f954c9ab88eefb023bf95fb1a3ad226a57
treebf1fcc7aad13809dccbb3e22c6415b36998f8f3a
parent48099c7a073692deb2f01cab4f47b85c4eb4dcd8
MAJOR: stream interface: remove the ->release function pointer

Since last commit, we now have a pointer to the applet in the
applet context. So we don't need the si->release function pointer
anymore, it can be extracted from applet->applet.release. At many
places, the ->release function was still tested for real connections
while it is only limited to applets, so most of them were simply
removed. For the remaining valid uses, a new inline function
si_applet_release() was added to simplify the check and the call.
include/proto/stream_interface.h
include/types/stream_interface.h
src/peers.c
src/session.c
src/stream_interface.c