2005-01-21 22:42:33 +02:00
|
|
|
#ifndef __CMPH_BMZ_H__
|
|
|
|
#define __CMPH_BMZ_H__
|
2004-12-23 15:16:30 +02:00
|
|
|
|
|
|
|
#include "cmph.h"
|
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
typedef struct __bmz_data_t bmz_data_t;
|
|
|
|
typedef struct __bmz_config_data_t bmz_config_data_t;
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-27 15:01:45 +02:00
|
|
|
bmz_config_data_t *bmz_config_new();
|
2005-01-21 22:42:33 +02:00
|
|
|
void bmz_config_set_hashfuncs(cmph_config_t *mph, CMPH_HASH *hashfuncs);
|
|
|
|
void bmz_config_destroy(cmph_config_t *mph);
|
|
|
|
cmph_t *bmz_new(cmph_config_t *mph, float c);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
void bmz_load(FILE *f, cmph_t *mphf);
|
|
|
|
int bmz_dump(cmph_t *mphf, FILE *f);
|
|
|
|
void bmz_destroy(cmph_t *mphf);
|
|
|
|
cmph_uint32 bmz_search(cmph_t *mphf, const char *key, cmph_uint32 keylen);
|
2004-12-23 15:16:30 +02:00
|
|
|
#endif
|