X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;ds=inline;f=keystructs.h;h=e145fdf7af1b7a15ff744123ef3b6cff18f8162c;hb=1aa3569ed8afe434ef0ae75799e962fe7f58b6d5;hp=33dba65a5b6d6c364ab8c2c12d28dfa691dacb9d;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/keystructs.h b/keystructs.h index 33dba65..e145fdf 100644 --- a/keystructs.h +++ b/keystructs.h @@ -9,7 +9,11 @@ #ifndef __KEYSTRUCTS_H__ #define __KEYSTRUCTS_H__ +#include #include +#include + +#include "ll.h" /** * struct openpgp_packet - Stores an OpenPGP packet. @@ -77,4 +81,21 @@ struct openpgp_publickey { struct openpgp_publickey *next; }; +/** + * struct stats_key - holds key details suitable for doing stats on. + * @keyid: The keyid. + * @colour: Used for marking during DFS/BFS. + * @parent: The key that lead us to this one for DFS/BFS. + * @sigs: A linked list of the signatures on this key. + * @gotsigs: A bool indicating if we've initialized the sigs element yet. + */ +struct stats_key { + uint64_t keyid; + int colour; + uint64_t parent; + struct ll *sigs; + bool gotsigs; + bool disabled; +}; + #endif /* __KEYSTRUCTS_H__ */