dlua-dovecot.c revision bcb4e51a409d94ae670de96afb8483a4f7855294
/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "dlua-script-private.h"
#define LUA_SCRIPT_DOVECOT "dovecot"
static int dlua_i_debug(lua_State *L)
{
return 0;
}
static int dlua_i_info(lua_State *L)
{
return 0;
}
static int dlua_i_warning(lua_State *L)
{
return 0;
}
static int dlua_i_error(lua_State *L)
{
return 0;
}
static luaL_Reg lua_dovecot_methods[] = {
{ "i_debug", dlua_i_debug },
{ "i_info", dlua_i_info },
{ "i_warning", dlua_i_warning },
{ "i_error", dlua_i_error },
};
{
}
{
/* Create table for holding values */
lua_newtable(script->L);
/* push new metatable to stack */
/* this will register functions to the metatable itself */
/* point __index to self */
/* set table's metatable, pops stack */
/* register table as global */
}