X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..8bb45b1dfe6b5b30d89f154c16fb3eb8c049f496:/mem.h diff --git a/mem.h b/mem.h index 3358cd1..103c417 100644 --- a/mem.h +++ b/mem.h @@ -10,6 +10,7 @@ #define __MEM_H_ #include "keystructs.h" +#include "stats.h" /** * packet_dup - duplicate an OpenPGP packet. @@ -73,4 +74,14 @@ void free_signedpacket_list( */ void free_publickey(struct openpgp_publickey *key); +/** + * free_statskey - free an stats key structure. + * @key: The key to free. + * + * Takes a stats key and frees the memory used by it and the linked list + * of sigs under it. Doesn't recurse into the list as it's assumed all the + * objects referenced also exist in the hash. + */ +void free_statskey(struct stats_key *key); + #endif /* __MEM_H_ */