1
Fork 0
turbonss/src/hash.h

15 lines
514 B
C
Raw Normal View History

2004-12-23 15:16:30 +02:00
#ifndef __CMPH_HASH_H__
#define __CMPH_HASH_H__
#include "cmph_types.h"
2005-01-18 23:06:08 +02:00
typedef union cmph__hash_state_t cmph_hash_state_t;
2004-12-23 15:16:30 +02:00
2005-01-18 23:06:08 +02:00
cmph_hash_state_t *cmph_hash_state_new(CMPH_HASH, cmph_uint32 hashsize);
cmph_uint32 cmph_hash(cmph_hash_state_t *state, const char *key, cmph_uint32 keylen);
void cmph_hash_state_dump(cmph_hash_state_t *state, char **buf, cmph_uint32 *buflen);
cmph_hash_state_t *cmph_hash_state_load(const char *buf, cmph_uint32 buflen);
void cmph_hash_state_destroy(cmph_hash_state_t *state);
2004-12-23 15:16:30 +02:00
#endif