]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: use accessors for stream hlua ctx
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 12 Mar 2024 16:00:25 +0000 (17:00 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 13 Mar 2024 08:24:46 +0000 (09:24 +0100)
commitaa554be69c645d49831875aa53c7eb67af07c31a
tree4a4dd3dd437be7189ecccfed4fb9fd78e740c08b
parent1a2cdf64c9e33495b993771da8759aac9d3dd0ba
MINOR: hlua: use accessors for stream hlua ctx

Change hlua_stream_ctx_prepare() prototype so that it now returns the
proper hlua ctx on success instead of returning a boolean.

Add hlua_stream_ctx_get() to retrieve hlua ctx out of a given stream.

This way we may easily change the storage mechanism for hlua stream in
the future without extensive code changes.

No backport needed unless a commit depends on it.
src/hlua.c