From: Nick Porter Date: Thu, 24 Apr 2025 11:03:07 +0000 (+0100) Subject: Make fr_lua_check_func a library function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34de911916d64250c5005638e080dfbe4702bee4;p=thirdparty%2Ffreeradius-server.git Make fr_lua_check_func a library function So it can be used in rlm_lua.c --- diff --git a/src/modules/rlm_lua/lua.c b/src/modules/rlm_lua/lua.c index d52eb36093..909a0dc683 100644 --- a/src/modules/rlm_lua/lua.c +++ b/src/modules/rlm_lua/lua.c @@ -631,7 +631,7 @@ char const *fr_lua_version(lua_State *L) * @param[in] name of function to check. * @returns 0 on success (function is present and correct), or -1 on failure. */ -static int fr_lua_check_func(module_inst_ctx_t const *mctx, lua_State *L, char const *name) +int fr_lua_check_func(module_inst_ctx_t const *mctx, lua_State *L, char const *name) { int ret; int type; diff --git a/src/modules/rlm_lua/lua.h b/src/modules/rlm_lua/lua.h index f61ffb1e70..dbca5ce6b8 100644 --- a/src/modules/rlm_lua/lua.h +++ b/src/modules/rlm_lua/lua.h @@ -68,6 +68,7 @@ int fr_lua_init(lua_State **out, module_inst_ctx_t const *mctx); unlang_action_t fr_lua_run(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request, char const *funcname); bool fr_lua_isjit(lua_State *L); char const *fr_lua_version(lua_State *L); +int fr_lua_check_func(module_inst_ctx_t const *mctx, lua_State *L, char const *name); /* util.c */ void fr_lua_util_jit_log_debug(char const *msg);