mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 15:04:42 +00:00
MINOR: applet: add a new "owner" pointer in the appctx
This pointer indicates what stream-interface the appctx belongs to, just like we have for the connections.
This commit is contained in:
parent
b167b6bff9
commit
19c8161b3d
@ -234,6 +234,7 @@ static inline void si_attach_appctx(struct stream_interface *si, struct appctx *
|
||||
{
|
||||
si->ops = &si_embedded_ops;
|
||||
si->end = &appctx->obj_type;
|
||||
appctx->owner = si;
|
||||
}
|
||||
|
||||
/* returns a pointer to the appctx being run in the SI or NULL if none */
|
||||
|
@ -129,6 +129,7 @@ struct appctx {
|
||||
unsigned int st1; /* prompt for stats, session error for peers */
|
||||
unsigned int st2; /* output state for stats, unused by peers */
|
||||
struct si_applet *applet; /* applet this context refers to */
|
||||
void *owner; /* pointer to upper layer's entity (eg: stream interface) */
|
||||
|
||||
union {
|
||||
struct {
|
||||
|
Loading…
Reference in New Issue
Block a user