]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua_fcn: implement index and pair metamethods for patref class
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 19 Nov 2024 11:01:51 +0000 (12:01 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 29 Nov 2024 06:22:46 +0000 (07:22 +0100)
commit202107239103a98fbf643d90d3f2dcaa6fb66927
treedbaaa933f714db9e1f8847aa2cd2c70f8c5b8f84
parent31784efad2831287919ca3638d113a3056a214e9
MINOR: hlua_fcn: implement index and pair metamethods for patref class

patref object may now leverage index and pair methamethods to list and
access patref elements at a specific index (=key)

Also, patref:is_map() method may be used to know if the patref stores acl
(key only) or map-style (key:value) patterns.
doc/lua-api/index.rst
include/haproxy/hlua-t.h
src/hlua_fcn.c