summaryrefslogtreecommitdiff
path: root/src/routing.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@slashwin.dk>2021-09-19 11:46:27 +0200
committerJesper Jensen <jesper@slashwin.dk>2021-09-19 11:46:27 +0200
commitb5127f1c7624f40437159f164ac8eabc50b65f74 (patch)
treeadd3888f067e550b542ad9653fe9890ce72a8944 /src/routing.h
parent4c2f2c7e4c36989463e2a44c60f240cf9c0e1a48 (diff)
Add general tests
Diffstat (limited to 'src/routing.h')
-rw-r--r--src/routing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/routing.h b/src/routing.h
index 5c98f13..7f1d19e 100644
--- a/src/routing.h
+++ b/src/routing.h
@@ -29,4 +29,7 @@ void routing_init(struct nodeid* myid);
void routing_flush();
bool routing_interested(struct nodeid* id);
bool routing_offer(struct nodeid* id, struct entry **dest);
+void routing_oldest(struct entry** dest);
size_t routing_closest(struct nodeid* needle, size_t n, struct entry** res);
+
+struct entry* routing_get(struct nodeid* id);