X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=mem.h;h=103c417e8e333e37926ff3afb1d6077e8104ac9e;hb=34b03028378025ad22c8d29f70e81109cee690c2;hp=3358cd18c7ea77c5e366722452b7396d63c5ce19;hpb=0f9e9f98538575cf98f55699962d605caa9567f0;p=onak.git 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_ */