MINOR: lua: Add a function to get a filter attached to a channel class
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 Feb 2020 14:21:02 +0000 (15:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Aug 2021 06:57:07 +0000 (08:57 +0200)
commit9f55a5012efbffda5ae80ec5825fd58384bb8c3f
tree4606c726e0156a4a9526ccc27083a2622580950c
parent69c581a09271e91d306e7b9080502a36abdc415e
MINOR: lua: Add a function to get a filter attached to a channel class

For now, there is no support for filters written in lua. So this function,
if called, will always return NULL. But when it will be called in a filter
context, it will return the filter structure attached to a channel
class. This function is also responsible to set the offset of data that may
be processed and the length of these data. When called outside a filter
context (so from an action), the offset is the input data position and the
length is the input data length. From a filter, the offset and the length of
data that may be filtered are retrieved the filter context.
src/hlua.c