From ff2b8e0602288da0e3747e33bc8f32fb41dffed1 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 27 Sep 2021 15:39:25 +0800 Subject: [PATCH] refact --- include/libs/tkv/tkv.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/libs/tkv/tkv.h b/include/libs/tkv/tkv.h index 96585cfd80..22da145237 100644 --- a/include/libs/tkv/tkv.h +++ b/include/libs/tkv/tkv.h @@ -56,7 +56,13 @@ const tkv_obj_t *tkvGet(tkv_key_t *); int tkvGetBatch(tkv_db_t *, tkv_key_t **, int, tkv_obj_t **); int tkvDrop(tkv_db_t *, tkv_key_t *); int tkvCommit(tkv_db_t *, void * /*TODO*/); -// TODO: iter function + +typedef struct { +} tkv_db_iter_t; + +tkv_db_iter_t * tkvIterNew(tkv_db_t *); +void tkvIterFree(tkv_db_iter_t *); +const tkv_obj_t *tkvIterNext(tkv_db_iter_t *); #ifdef __cplusplus }