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.
(cherry picked from commit aa554be69c645d49831875aa53c7eb67af07c31a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit a3931a64f479457c6cfee7bf7dda83da1361346a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 188adfd3eae66f056af218bc3b8b982aeead1186)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 58d3f8bb9304671973bcbb4a3ceccd1b891583b4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 5a14cbb02271524bc660287671eb6efe55b0e572)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed