diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 12:49:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-14 12:49:11 +0100 |
commit | a850877478d9372b5c648b79b8dc7fa9616914ab (patch) | |
tree | 1672422e1c7681647a48415a7b9d840d7d68873a /src | |
parent | 3c99c2f5af0bb590b40a8551bcaf7be467af15f4 (diff) | |
download | rspamd-a850877478d9372b5c648b79b8dc7fa9616914ab.tar.gz rspamd-a850877478d9372b5c648b79b8dc7fa9616914ab.zip |
Rename memory pool functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_mempool.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index e6d80ab1f..3fe33ade6 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -26,20 +26,20 @@ /* Lua bindings */ LUA_FUNCTION_DEF (mempool, create); -LUA_FUNCTION_DEF (mempool, memory_pool_add_destructor); -LUA_FUNCTION_DEF (mempool, memory_pool_delete); -LUA_FUNCTION_DEF (mempool, memory_pool_stat); -LUA_FUNCTION_DEF (mempool, memory_pool_suggest_size); -LUA_FUNCTION_DEF (mempool, memory_pool_set_variable); -LUA_FUNCTION_DEF (mempool, memory_pool_get_variable); +LUA_FUNCTION_DEF (mempool, add_destructor); +LUA_FUNCTION_DEF (mempool, delete); +LUA_FUNCTION_DEF (mempool, stat); +LUA_FUNCTION_DEF (mempool, suggest_size); +LUA_FUNCTION_DEF (mempool, set_variable); +LUA_FUNCTION_DEF (mempool, get_variable); static const struct luaL_reg mempoollib_m[] = { - LUA_INTERFACE_DEF (mempool, memory_pool_add_destructor), - LUA_INTERFACE_DEF (mempool, memory_pool_stat), - LUA_INTERFACE_DEF (mempool, memory_pool_suggest_size), - LUA_INTERFACE_DEF (mempool, memory_pool_set_variable), - LUA_INTERFACE_DEF (mempool, memory_pool_get_variable), - {"destroy", lua_mempool_memory_pool_delete}, + LUA_INTERFACE_DEF (mempool, add_destructor), + LUA_INTERFACE_DEF (mempool, stat), + LUA_INTERFACE_DEF (mempool, suggest_size), + LUA_INTERFACE_DEF (mempool, set_variable), + LUA_INTERFACE_DEF (mempool, get_variable), + {"destroy", lua_mempool_delete}, {"__tostring", rspamd_lua_class_tostring}, {NULL, NULL} }; @@ -99,7 +99,7 @@ lua_mempool_destructor_func (gpointer p) } static int -lua_mempool_memory_pool_add_destructor (lua_State *L) +lua_mempool_add_destructor (lua_State *L) { struct memory_pool_s *mempool = rspamd_lua_check_mempool (L, 1); struct lua_mempool_udata *ud; @@ -129,7 +129,7 @@ lua_mempool_memory_pool_add_destructor (lua_State *L) } static int -lua_mempool_memory_pool_delete (lua_State *L) +lua_mempool_delete (lua_State *L) { struct memory_pool_s *mempool = rspamd_lua_check_mempool (L, 1); @@ -145,7 +145,7 @@ lua_mempool_memory_pool_delete (lua_State *L) } static int -lua_mempool_memory_pool_stat (lua_State *L) +lua_mempool_stat (lua_State *L) { struct memory_pool_s *mempool = rspamd_lua_check_mempool (L, 1); @@ -160,7 +160,7 @@ lua_mempool_memory_pool_stat (lua_State *L) } static int -lua_mempool_memory_pool_suggest_size (lua_State *L) +lua_mempool_suggest_size (lua_State *L) { struct memory_pool_s *mempool = rspamd_lua_check_mempool (L, 1); @@ -176,7 +176,7 @@ lua_mempool_memory_pool_suggest_size (lua_State *L) } static int -lua_mempool_memory_pool_set_variable (lua_State *L) +lua_mempool_set_variable (lua_State *L) { struct memory_pool_s *mempool = rspamd_lua_check_mempool (L, 1); const gchar *var = luaL_checkstring (L, 2), @@ -195,7 +195,7 @@ lua_mempool_memory_pool_set_variable (lua_State *L) } static int -lua_mempool_memory_pool_get_variable (lua_State *L) +lua_mempool_get_variable (lua_State *L) { struct memory_pool_s *mempool = rspamd_lua_check_mempool (L, 1); const gchar *var = luaL_checkstring (L, 2); |