]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: simplify subscription by adding a registration function
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Jul 2018 06:18:20 +0000 (08:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 16:31:07 +0000 (18:31 +0200)
commit8318885487792bdfccf753d6de2554c006739e10
treefeaa6d15c615c44374603a70d53f96d6516509bb
parent910b2bc829324e1366742aa65fc2c36e4209bfb8
MINOR: connection: simplify subscription by adding a registration function

This new function wl_set_waitcb() prepopulates a wait_list with a tasklet
and a context and returns it so that it can be passed to ->subscribe() to
be added to a connection or conn_stream's wait_list. The caller doesn't
need to know all the insiders details anymore this way.
include/proto/connection.h
src/checks.c
src/stream_interface.c