X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=stats.h;h=991bb1c6c20ae29f2956eabfe07046df4a0e7607;hb=2826e0222d6ad5148384d5d39ea748277093ab21;hp=08e2abea0152c22384d73e5072ec6f844c68b96b;hpb=243c905356e36f9b05b11ad72771f63196250e7a;p=onak.git diff --git a/stats.h b/stats.h index 08e2abe..991bb1c 100644 --- a/stats.h +++ b/stats.h @@ -33,6 +33,7 @@ key_getsigns - get the keys a key signs. */ #include #include +#include "keydb.h" #include "ll.h" /** @@ -75,7 +76,8 @@ void initcolour(bool parent); * key we have. It returns as soon as a path is found or when we run out * of keys; whichever comes sooner. */ -unsigned long findpath(struct stats_key *have, struct stats_key *want); +unsigned long findpath(struct onak_dbctx *dbctx, + struct stats_key *have, struct stats_key *want); /** * dofindpath - Given 2 keys displays a path between them. @@ -88,8 +90,9 @@ unsigned long findpath(struct stats_key *have, struct stats_key *want); * 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, int count); +void dofindpath(struct onak_dbctx *dbctx, + uint64_t have, uint64_t want, bool html, int count); -struct stats_key *furthestkey(struct stats_key *have); +struct stats_key *furthestkey(struct onak_dbctx *dbctx, struct stats_key *have); #endif /* __STATS_H__ */