diff options
Diffstat (limited to 'src/include/skalibs/cdb_make.h')
-rw-r--r-- | src/include/skalibs/cdb_make.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/skalibs/cdb_make.h b/src/include/skalibs/cdb_make.h index d0a949b..2858358 100644 --- a/src/include/skalibs/cdb_make.h +++ b/src/include/skalibs/cdb_make.h @@ -5,20 +5,20 @@ #include <skalibs/uint32.h> #include <skalibs/diuint32.h> +#include <skalibs/allreadwrite.h> #include <skalibs/genalloc.h> #include <skalibs/buffer.h> typedef struct cdb_make cdb_make, *cdb_make_ref ; struct cdb_make { - char buf[BUFFER_OUTSIZE] ; - genalloc hplist ; /* diuint32 */ - buffer b ; + genalloc hplist ; /* array of diuint32 */ uint32 pos ; - int fd ; + buffer b ; + char buf[BUFFER_OUTSIZE] ; } ; -#define CDB_MAKE_ZERO { .buf = "", .hplist = GENALLOC_ZERO, .b = BUFFER_INIT(&buffer_write, -1, 0, 0), .pos = 2048, .fd = -1 } +#define CDB_MAKE_ZERO { .hplist = GENALLOC_ZERO, .pos = 2048, .b = BUFFER_INIT(&fd_writesv, -1, 0, 0) } extern int cdb_make_start (struct cdb_make *, int) ; extern int cdb_make_add (struct cdb_make *, char const *, unsigned int, char const *, unsigned int) ; |