summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-21 21:37:20 +0800
committerruki <[email protected]>2022-05-21 21:37:20 +0800
commit56f6d6a37fbbcd011fc99441f30df3ce24b7c3f6 (patch)
tree481bb6a10379ac016de705e8d9140388d4678bc5 /core/src/xmake/engine.c
parentdbc34e84e8cbdaa3b2482e825b44aec311eafc1b (diff)
add bloom filter get and set
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 6fb35b207..d275c21f8 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -212,6 +212,8 @@ 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_get(lua_State* lua);
+tb_int_t xm_bloom_filter_set(lua_State* lua);
tb_int_t xm_bloom_filter_data_set(lua_State* lua);
// the windows functions
@@ -457,6 +459,8 @@ static luaL_Reg const g_bloom_filter_functions[] =
, { "clear", xm_bloom_filter_clear }
, { "data", xm_bloom_filter_data }
, { "size", xm_bloom_filter_size }
+, { "get", xm_bloom_filter_get }
+, { "set", xm_bloom_filter_set }
, { "data_set", xm_bloom_filter_data_set }
, { tb_null, tb_null }
};