From: William Lallemand Date: Tue, 6 May 2014 16:43:27 +0000 (+0200) Subject: MINOR: http: generic pointer to rule argument X-Git-Tag: v1.5-dev25~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a83111cee659ecc8c7956fc39097d33876b7a6e;p=thirdparty%2Fhaproxy.git MINOR: http: generic pointer to rule argument Add a void *data which can be used as a generic storage for rule arguments. --- diff --git a/include/types/proto_http.h b/include/types/proto_http.h index 50e6a92bc4..e1d04d6da0 100644 --- a/include/types/proto_http.h +++ b/include/types/proto_http.h @@ -431,6 +431,7 @@ struct http_req_rule { int loglevel; /* log-level value for HTTP_REQ_ACT_SET_LOGL */ int tos; /* tos value for HTTP_REQ_ACT_SET_TOS */ int mark; /* nfmark value for HTTP_REQ_ACT_SET_MARK */ + void *data; /* generic pointer for module or external rule */ struct { char *ref; /* MAP or ACL file name to update */ struct list key; /* pattern to retrieve MAP or ACL key */ @@ -454,6 +455,7 @@ struct http_res_rule { int loglevel; /* log-level value for HTTP_RES_ACT_SET_LOGL */ int tos; /* tos value for HTTP_RES_ACT_SET_TOS */ int mark; /* nfmark value for HTTP_RES_ACT_SET_MARK */ + void *data; /* generic pointer for module or external rule */ struct { char *ref; /* MAP or ACL file name to update */ struct list key; /* pattern to retrieve MAP or ACL key */