summaryrefslogtreecommitdiffstats
path: root/src/async.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-25 01:51:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-25 01:51:36 +0200
commit5adfca9b651e0e383d463da9e8158e75cad8e7c7 (patch)
tree906d85ae42ceede085d7c84bf9cdd9e678c03ae7 /src/async.h
parent482ddc46a62b9a6b8bd615fd35b2bac6d3b7d841 (diff)
downloadfastd-5adfca9b651e0e383d463da9e8158e75cad8e7c7.tar
fastd-5adfca9b651e0e383d463da9e8158e75cad8e7c7.zip
Remove ref-counting on remotes
Now that peers have a peer id we can use that to specify a peer in a resolve return. As the remote list of a peer doesn't change without the peer id changing, instead of taking a remote ref we can just use the peer id and remote index.
Diffstat (limited to 'src/async.h')
-rw-r--r--src/async.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/async.h b/src/async.h
index 7e1921c..f2a8f20 100644
--- a/src/async.h
+++ b/src/async.h
@@ -31,7 +31,9 @@
struct fastd_async_resolve_return {
- fastd_remote_t *remote;
+ uint64_t peer_id;
+ size_t remote;
+
size_t n_addr;
fastd_peer_address_t addr[];
};