2005-01-25 23:06:58 +02:00
|
|
|
#ifndef __CMPH_CHM_H__
|
|
|
|
#define __CMPH_CHM_H__
|
|
|
|
|
|
|
|
#include "cmph.h"
|
|
|
|
|
|
|
|
typedef struct __chm_data_t chm_data_t;
|
|
|
|
typedef struct __chm_config_data_t chm_config_data_t;
|
|
|
|
|
2005-01-27 15:01:45 +02:00
|
|
|
chm_config_data_t *chm_config_new();
|
2005-01-25 23:06:58 +02:00
|
|
|
void chm_config_set_hashfuncs(cmph_config_t *mph, CMPH_HASH *hashfuncs);
|
|
|
|
void chm_config_destroy(cmph_config_t *mph);
|
|
|
|
cmph_t *chm_new(cmph_config_t *mph, float c);
|
|
|
|
|
|
|
|
void chm_load(FILE *f, cmph_t *mphf);
|
|
|
|
int chm_dump(cmph_t *mphf, FILE *f);
|
|
|
|
void chm_destroy(cmph_t *mphf);
|
|
|
|
cmph_uint32 chm_search(cmph_t *mphf, const char *key, cmph_uint32 keylen);
|
|
|
|
#endif
|