#ifndef _LIGHTTPD_ACTIONS_LUA_H_
#define _LIGHTTPD_ACTIONS_LUA_H_

#include <lighttpd/base.h>
#include <lua.h>

LI_API void li_lua_init_action_mt(liServer *srv, lua_State *L);

LI_API liAction* li_lua_get_action(lua_State *L, int ndx);
LI_API int li_lua_push_action(liServer *srv, lua_State *L, liAction *a);

/* create new action from lua function */
LI_API liAction* li_lua_make_action(lua_State *L, int ndx);

/* either acquire a action ref or makes a new action from a lua function */
LI_API liAction* li_lua_get_action_ref(lua_State *L, int ndx);

#endif
