From 34c86760fa30c302c4fe5c95deb12af84c7c4dc6 Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Wed, 3 May 2023 17:43:02 +0200 Subject: [PATCH] MINOR: hlua: declare hlua_{ref,pushref,unref} functions Declaring hlua_{ref,pushref,unref} functions to make them usable from hlua_fcn.c to simplify reference handling. --- include/haproxy/hlua.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/haproxy/hlua.h b/include/haproxy/hlua.h index b6b1b786c..52eed06eb 100644 --- a/include/haproxy/hlua.h +++ b/include/haproxy/hlua.h @@ -56,6 +56,9 @@ void hlua_applet_http_fct(struct appctx *ctx); int hlua_event_sub(lua_State *L, event_hdl_sub_list *sub_list); struct task *hlua_process_task(struct task *task, void *context, unsigned int state); const char *hlua_show_current_location(const char *pfx); +int hlua_ref(lua_State *L); +void hlua_pushref(lua_State *L, int ref); +void hlua_unref(lua_State *L, int ref); #else /* USE_LUA */