]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua: declare hlua_{ref,pushref,unref} functions
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 3 May 2023 15:43:02 +0000 (17:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
Declaring hlua_{ref,pushref,unref} functions to make them usable from
hlua_fcn.c to simplify reference handling.

include/haproxy/hlua.h

index b6b1b786ccfda2ca9eeb05e7fe742c17e71a3afa..52eed06eb75b2b38891bb00222575ff7e9d96aa3 100644 (file)
@@ -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 */