fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
cdbmake.h
Go to the documentation of this file.
1/* Public domain. */
2
3#ifndef CDB_MAKE_H
4#define CDB_MAKE_H
5
6#include "buffer.h"
7#include "uint_t.h"
8
9#define CDB_HPLIST 1000
10
11struct cdb_hp {
14};
15
16struct cdb_hplist {
19 int num;
20};
21
22struct cdb_make {
23 char bspace[8192];
24 char final[2048];
28 struct cdb_hp *split; /* includes space for hash */
29 struct cdb_hp *hash;
33 int fd;
34};
35
36extern int cdb_make_start(struct cdb_make *,int);
37extern int cdb_make_addbegin(struct cdb_make *,unsigned int,unsigned int);
38extern int cdb_make_addend(struct cdb_make *,unsigned int,unsigned int,uint32);
39extern int cdb_make_add(struct cdb_make *,char *,unsigned int,char *,unsigned int);
40extern int cdb_make_finish(struct cdb_make *);
41
42#endif
additional types and pack routines
uint32_t uint32
Definition: uint_t.h:40
int cdb_make_finish(struct cdb_make *)
Definition: cdbmake.c:78
int cdb_make_start(struct cdb_make *, int)
Definition: cdbmake.c:15
#define CDB_HPLIST
Definition: cdbmake.h:9
int cdb_make_addend(struct cdb_make *, unsigned int, unsigned int, uint32)
Definition: cdbmake.c:35
int cdb_make_add(struct cdb_make *, char *, unsigned int, char *, unsigned int)
Definition: cdbmake.c:70
int cdb_make_addbegin(struct cdb_make *, unsigned int, unsigned int)
Definition: cdbmake.c:57
Definition: buffer.h:5
Definition: cdbmake.h:11
uint32 p
Definition: cdbmake.h:13
uint32 h
Definition: cdbmake.h:12
struct cdb_hplist * next
Definition: cdbmake.h:18
int num
Definition: cdbmake.h:19
struct cdb_hp hp[CDB_HPLIST]
Definition: cdbmake.h:17
struct cdb_hplist * head
Definition: cdbmake.h:27
struct cdb_hp * hash
Definition: cdbmake.h:29
struct cdb_hp * split
Definition: cdbmake.h:28
uint32 pos
Definition: cdbmake.h:32
uint32 start[256]
Definition: cdbmake.h:26
buffer b
Definition: cdbmake.h:31
int fd
Definition: cdbmake.h:33
uint32 numentries
Definition: cdbmake.h:30
uint32 count[256]
Definition: cdbmake.h:25
char bspace[8192]
Definition: cdbmake.h:23