From: Aurelien DARRAGON Date: Wed, 3 May 2023 15:43:02 +0000 (+0200) Subject: MINOR: hlua: declare hlua_{ref,pushref,unref} functions X-Git-Tag: v2.8-dev10~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34c86760fa30c302c4fe5c95deb12af84c7c4dc6;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/hlua.h b/include/haproxy/hlua.h index b6b1b786cc..52eed06eb7 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 */