commit | 8318885487792bdfccf753d6de2554c006739e10 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jul 18 08:18:20 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jul 19 18:31:07 2018 +0200 |
tree | feaa6d15c615c44374603a70d53f96d6516509bb | |
parent | 910b2bc829324e1366742aa65fc2c36e4209bfb8 [diff] |
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.