]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make fr_lua_check_func a library function
authorNick Porter <nick@portercomputing.co.uk>
Thu, 24 Apr 2025 11:03:07 +0000 (12:03 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 24 Apr 2025 11:03:07 +0000 (12:03 +0100)
So it can be used in rlm_lua.c

src/modules/rlm_lua/lua.c
src/modules/rlm_lua/lua.h

index d52eb360939b15ab5c13f9bb1a45af8afba91635..909a0dc683a543c32346f0b48aa2c5e488166e76 100644 (file)
@@ -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;
index f61ffb1e706c2ae9060d546c63d9cb63667d3541..dbca5ce6b8e242f0f730e084f10baa66324e63c2 100644 (file)
@@ -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);