X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=hash.h;h=3044c615bb38c27a42ba056009cb240002afa888;hb=4843efc642ddcfe524bb6ba37b01154e57489ff7;hp=b7caa1a5d74f3fa0027d16654237e8fee6f4669b;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/hash.h b/hash.h index b7caa1a..3044c61 100644 --- a/hash.h +++ b/hash.h @@ -4,13 +4,15 @@ * Jonathan McDowell * * Copyright 2000-2002 Project Purple + * + * $Id: hash.h,v 1.4 2003/06/04 20:57:08 noodles Exp $ */ #ifndef __HASH_H__ #define __HASH_H__ +#include "keystructs.h" #include "ll.h" -#include "stats.h" #define HASHSIZE 1024 #define HASHMASK 0x3FF @@ -23,6 +25,14 @@ */ 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. @@ -65,14 +75,4 @@ unsigned long hashelements(void); */ 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); - #endif /* __HASH_H__ */