]> the.earth.li Git - onak.git/blobdiff - stats.h
Use dynamic context for all backend databases
[onak.git] / stats.h
diff --git a/stats.h b/stats.h
index 08e2abea0152c22384d73e5072ec6f844c68b96b..991bb1c6c20ae29f2956eabfe07046df4a0e7607 100644 (file)
--- a/stats.h
+++ b/stats.h
@@ -33,6 +33,7 @@ key_getsigns - get the keys a key signs. */
 #include <inttypes.h>
 #include <stdbool.h>
 
+#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__ */