1
Fork 0
turbonss/src/cmph_structs.h

33 lines
554 B
C
Raw Normal View History

2004-12-23 15:16:30 +02:00
#ifndef __CMPH_STRUCTS_H__
#define __CMPH_STRUCTS_H__
#include "cmph.h"
/** Hash generation algorithm data
*/
struct __mph_t
{
MPH_ALGO algo;
key_source_t *key_source;
uint32 verbosity;
void *data; //algorithm dependent data
};
/** Hash querying algorithm data
*/
struct __mphf_t
{
MPH_ALGO algo;
uint32 size;
key_source_t *key_source;
void *data; //algorithm dependent data
};
mph_t *__mph_new(MPH_ALGO algo, key_source_t *key_source);
void __mph_destroy();
void __mphf_dump(mphf_t *mphf, FILE *);
mphf_t *__mphf_load(FILE *f);
#endif