From 29c3237009537015e66875ab9ce1fbe3e101576b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Dec 2010 18:08:14 +0300 Subject: * Add versions to lua API * Provide compatibility for lua plugins for old versions of rspamd --- src/lua/lua_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua/lua_common.h') diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 823056316..3e0fbed88 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -16,6 +16,8 @@ extern const luaL_reg null_reg[]; +#define RSPAMD_LUA_API_VERSION 1 + /* Common utility functions */ void lua_newclass (lua_State *L, const gchar *classname, const struct luaL_reg *func); void lua_setclass (lua_State *L, const gchar *classname, gint objidx); -- cgit v1.2.3