2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
16 struct hash_elem *next;
21 struct hash_elem **table;
24 #define hash_find(table, key) hash_find_hash(table, hash_string ((unsigned char *)key, table->nelem), key)
26 #define hash_delete(table,key,data,destroy) hash_delete_hash(table, hash_string ((unsigned char *)key, table->nelem), key, data, destroy)
28 HASH *hash_create (int nelem);
29 int hash_string (const unsigned char *s, int n);
30 int hash_insert (HASH * table, const char *key, void *data, int allow_dup);
31 HASH *hash_resize (HASH * table, int nelem);
32 void *hash_find_hash (const HASH * table, int hash, const char *key);
33 void hash_delete_hash (HASH * table, int hash, const char *key,
34 const void *data, void (*destroy) (void *));
35 void hash_destroy (HASH ** hash, void (*destroy) (void *));
37 void hash_map (HASH* table,
38 void (*mapfunc) (const char* key, void* data, unsigned long more),