From: Willy Tarreau Date: Sun, 20 Sep 2009 19:43:50 +0000 (+0200) Subject: [MINOR] add a ->private member to the stream_interface X-Git-Tag: v1.4-dev3~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eecc8ee673b8d8babdc5bd092612fca63f1156a6;p=thirdparty%2Fhaproxy.git [MINOR] add a ->private member to the stream_interface iohandlers will need to store some form of context and for this will need a way to find their call context. We add the ->private as well as ->st0 and ->st1 for that purpose. Most likely ->private will be initialized to the current session and ->st0 and ->st1 will be used to maintain any form of internal state between calls. --- diff --git a/include/types/stream_interface.h b/include/types/stream_interface.h index 9dfafcb6b6..e1e36468d0 100644 --- a/include/types/stream_interface.h +++ b/include/types/stream_interface.h @@ -98,6 +98,8 @@ struct stream_interface { struct buffer *ib, *ob; /* input and output buffers */ unsigned int err_type; /* first error detected, one of SI_ET_* */ void *err_loc; /* commonly the server, NULL when SI_ET_NONE */ + void *private; /* may be used by any function above */ + unsigned int st0, st1; /* may be used by any function above */ };