X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=stats.h;h=08d2eb6313f24f4ba9626168db9f6767e8e8df06;hp=08e2abea0152c22384d73e5072ec6f844c68b96b;hb=58ed9a0076feb9604154b99da6ed1907ca7df089;hpb=243c905356e36f9b05b11ad72771f63196250e7a diff --git a/stats.h b/stats.h index 08e2abe..08d2eb6 100644 --- a/stats.h +++ b/stats.h @@ -13,8 +13,7 @@ * more details. * * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * this program. If not, see . */ /* MOSTSIGNED @@ -33,6 +32,7 @@ key_getsigns - get the keys a key signs. */ #include #include +#include "keydb.h" #include "ll.h" /** @@ -75,7 +75,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 +89,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__ */