diff --git a/include/libs/tkv/tkv.h b/include/libs/tkv/tkv.h index 96585cfd80e843caa4abd02c98cf0c4394029908..22da1452370ba23d8e2a23a4bd19559f2d4db878 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 }