From 0beff2477b55728603127f21a9df604b6fcf840c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 3 Jul 2023 11:10:09 +0000 Subject: Refactor cdbmake, add cdbmake_addv, cdb_hashv Signed-off-by: Laurent Bercot --- src/include/skalibs/cdbmake.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/skalibs/cdbmake.h b/src/include/skalibs/cdbmake.h index 0da0a86..18b798a 100644 --- a/src/include/skalibs/cdbmake.h +++ b/src/include/skalibs/cdbmake.h @@ -4,9 +4,8 @@ #define SKALIBS_CDBMAKE_H #include +#include -#include -#include #include #include @@ -18,11 +17,11 @@ struct cdbmaker_s buffer b ; char buf[BUFFER_OUTSIZE] ; } ; - -#define CDBMAKER_ZERO { .hplist = GENALLOC_ZERO, .pos = 2048, .b = BUFFER_INIT(&fd_writev, -1, 0, 0) } +#define CDBMAKER_ZERO { .hplist = GENALLOC_ZERO, .pos = 2048, .b = BUFFER_ZERO, .buf = { 0 } } extern int cdbmake_start (cdbmaker *, int) ; extern int cdbmake_add (cdbmaker *, char const *, uint32_t, char const *, uint32_t) ; +extern int cdbmake_addv (cdbmaker *, struct iovec const *, unsigned int, struct iovec const *, unsigned int) ; extern int cdbmake_finish (cdbmaker *) ; #endif -- cgit v1.2.3