summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-21 21:22:17 +0800
committerruki <[email protected]>2022-05-21 21:22:17 +0800
commitdbc34e84e8cbdaa3b2482e825b44aec311eafc1b (patch)
treedf9a56d68efc15bd8bc25801b5abe2a6b7d770c9 /core/src/xmake/engine.c
parent56defbb27a476695f6527ecd633140221a7b7148 (diff)
add clear for bloom filter
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 992fb0cca..6fb35b207 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -209,6 +209,10 @@ tb_int_t xm_lz4_decompress_stream_close(lua_State* lua);
// the bloom filter functions
tb_int_t xm_bloom_filter_open(lua_State* lua);
tb_int_t xm_bloom_filter_close(lua_State* lua);
+tb_int_t xm_bloom_filter_clear(lua_State* lua);
+tb_int_t xm_bloom_filter_data(lua_State* lua);
+tb_int_t xm_bloom_filter_size(lua_State* lua);
+tb_int_t xm_bloom_filter_data_set(lua_State* lua);
// the windows functions
#ifdef TB_CONFIG_OS_WINDOWS
@@ -448,9 +452,13 @@ static luaL_Reg const g_lz4_functions[] =
// the bloom filter functions
static luaL_Reg const g_bloom_filter_functions[] =
{
- { "open", xm_bloom_filter_open }
-, { "close", xm_bloom_filter_close }
-, { tb_null, tb_null }
+ { "open", xm_bloom_filter_open }
+, { "close", xm_bloom_filter_close }
+, { "clear", xm_bloom_filter_clear }
+, { "data", xm_bloom_filter_data }
+, { "size", xm_bloom_filter_size }
+, { "data_set", xm_bloom_filter_data_set }
+, { tb_null, tb_null }
};
// the string functions