diff options
author | Colin Walters <walters@verbum.org> | 2010-11-11 15:01:07 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-11-16 17:01:07 -0500 |
commit | 9bf6ff0e49391c7aee76b2fcb6e479a34e19c058 (patch) | |
tree | 79f40cb50da5a4f23f8efeee20612fa9708d2930 /girepository/cmph/sdbm_hash.h | |
parent | c9d0441f7c8fb33f313ba65b11cb552afa4cf533 (diff) | |
download | gobject-introspection-9bf6ff0e49391c7aee76b2fcb6e479a34e19c058.tar.gz |
Import CMPH 1.0
This will be used for typelib indexing. See README-CMPH-IMPORT.txt
for more information.
Diffstat (limited to 'girepository/cmph/sdbm_hash.h')
-rw-r--r-- | girepository/cmph/sdbm_hash.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/girepository/cmph/sdbm_hash.h b/girepository/cmph/sdbm_hash.h new file mode 100644 index 00000000..f44b2f15 --- /dev/null +++ b/girepository/cmph/sdbm_hash.h @@ -0,0 +1,18 @@ +#ifndef __SDBM_HASH_H__ +#define __SDBM_HASH_H__ + +#include "hash.h" + +typedef struct __sdbm_state_t +{ + CMPH_HASH hashfunc; +} sdbm_state_t; + +sdbm_state_t *sdbm_state_new(); +cmph_uint32 sdbm_hash(sdbm_state_t *state, const char *k, cmph_uint32 keylen); +void sdbm_state_dump(sdbm_state_t *state, char **buf, cmph_uint32 *buflen); +sdbm_state_t *sdbm_state_copy(sdbm_state_t *src_state); +sdbm_state_t *sdbm_state_load(const char *buf, cmph_uint32 buflen); +void sdbm_state_destroy(sdbm_state_t *state); + +#endif |