X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=stats.h;h=df32ab66189a6345e4f2c20c58f55f4bc751239d;hb=refs%2Ftags%2F0.1.0;hp=af9f79fcbf7d4975bb063098c2b2f7493e0713c4;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/stats.h b/stats.h index af9f79f..df32ab6 100644 --- a/stats.h +++ b/stats.h @@ -61,6 +61,17 @@ void initcolour(bool parent); */ unsigned long findpath(struct stats_key *have, struct stats_key *want); +/** + * dofindpath - Given 2 keys displays a path between them. + * @have: The key we have. + * @want: The key we want to get to. + * @html: Should we output in html. + * + * This does a breadth first search on the key tree, starting with the + * key we have. It returns as soon as a path is found or when we run out + * of keys; whichever comes sooner. + */ +void dofindpath(uint64_t have, uint64_t want, bool html); struct stats_key *furthestkey(struct stats_key *have);