summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-12-22 18:08:14 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-12-22 18:08:14 +0300
commit29c3237009537015e66875ab9ce1fbe3e101576b (patch)
treeae47f0223ed9f5c133f60580d9ffc4d811b47fdf /src/lua/lua_common.h
parent501f1465ff2e985def4159ab32de267e7b111624 (diff)
downloadrspamd-29c3237009537015e66875ab9ce1fbe3e101576b.tar.gz
rspamd-29c3237009537015e66875ab9ce1fbe3e101576b.zip
* Add versions to lua API
* Provide compatibility for lua plugins for old versions of rspamd
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h2
1 files changed, 2 insertions, 0 deletions
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);