MINOR: lua-thread: Replace embedded struct hlua_function by a pointer
authorThierry Fournier <thierry.fournier@ozon.io>
Sun, 29 Nov 2020 01:05:57 +0000 (02:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commitad5345fed7cb2a75edaff8101864586f3205a73d
tree5bcb06057b1341397ddaa9dbb757fbfd2595e492
parent92689e651e59decfc567893c148a3beb546e3d7c
MINOR: lua-thread: Replace embedded struct hlua_function by a pointer

The goal is to allow execution of one main lua state per thread.

Because this struct will be filled after the configuration parser, we
cannot copy the content. The actual state of the Haproxy code doesn't
justify this change, it is an update preparing next steps.
include/haproxy/hlua-t.h
src/hlua.c