#ifndef __HASH_H__
#define __HASH_H__
+#include "keystructs.h"
#include "ll.h"
-#include "stats.h"
#define HASHSIZE 1024
#define HASHMASK 0x3FF
*/
void inithash(void);
+/**
+ * destroyhash - Clean up the hash after use.
+ *
+ * This function destroys the hash after use, freeing any memory that was
+ * used during its lifetime.
+ */
+void destroyhash(void);
+
/**
* addtohash - Adds a key to the hash.
* @key: The key to add.
* Gets a particular entry from the hash. Useful for doing something over
* all entries in the hash.
*/
-struct ll *gethashtableentry(int entry);
-
-/**
- * hash_getkeysigs - Gets the signatures on a key.
- * @keyid: The key we want the signatures for.
- *
- * This function gets the signatures on a key. It's the same as the
- * getkeysigs function from the keydb module except we also cache the data
- * so that if we need it again we already have it available.
- */
-struct ll *hash_getkeysigs(uint64_t keyid);
+struct ll *gethashtableentry(unsigned int entry);
#endif /* __HASH_H__ */