]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: refactor the Lua object registration
authorThierry Fournier <tfournier@arpalert.org>
Fri, 19 Feb 2016 17:34:46 +0000 (18:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2016 13:43:52 +0000 (15:43 +0200)
commit45e78d7aa992c36e9ea92b6b9cafe4e341d5695c
treecb5f029461b66c0f67d3f53d83ce9989c34a8318
parent4f99b27c3486801d1a986440e3527d3126523839
MINOR: lua: refactor the Lua object registration

All the HAProxy Lua object are declared with the same pattern:
 - Add the function __tosting which dumps the object name
 - Register the name in the Lua REGISTRY
 - Register the reference ID

These action are refactored in on function. This remove some
lines of code.
include/proto/hlua_fcn.h
src/hlua.c
src/hlua_fcn.c