debian/rules: Use `git' potty wrapper.
[qmail] / cdbmake.h
CommitLineData
2117e02e
MW
1#ifndef CDBMAKE_H
2#define CDBMAKE_H
3
4#include "uint32.h"
5
6#define CDBMAKE_HPLIST 1000
7
8struct cdbmake_hp { uint32 h; uint32 p; } ;
9
10struct cdbmake_hplist {
11 struct cdbmake_hp hp[CDBMAKE_HPLIST];
12 struct cdbmake_hplist *next;
13 int num;
14} ;
15
16struct cdbmake {
17 char final[2048];
18 uint32 count[256];
19 uint32 start[256];
20 struct cdbmake_hplist *head;
21 struct cdbmake_hp *split; /* includes space for hash */
22 struct cdbmake_hp *hash;
23 uint32 numentries;
24} ;
25
26extern void cdbmake_pack();
27#define CDBMAKE_HASHSTART ((uint32) 5381)
28extern uint32 cdbmake_hashadd();
29
30extern void cdbmake_init();
31extern int cdbmake_add();
32extern int cdbmake_split();
33extern uint32 cdbmake_throw();
34
35#endif