1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Put an optional IdempotentCallback in bufchains.

The callback has the same semantics as for packet queues: it triggers
automatically when data is added to a bufchain, not when it's removed.
This commit is contained in:
Simon Tatham
2018-09-22 08:13:41 +01:00
parent 623c7b720c
commit 06b721ca03
6 changed files with 14 additions and 2 deletions

1
misc.h
View File

@ -78,6 +78,7 @@ struct bufchain_granule;
struct bufchain_tag {
struct bufchain_granule *head, *tail;
int buffersize; /* current amount of buffered data */
IdempotentCallback *ic;
};
void bufchain_init(bufchain *ch);