diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-16 08:00:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-16 08:00:19 +0000 |
commit | f42770d1f169be156a830be52669bd49cb600124 (patch) | |
tree | de68aa94e4def49f7e9272e80fd5996410ebf499 /src/ats-tool | |
parent | 2c8688f023c99960394e066a30a3eed4041f43fb (diff) |
-doxygen, indentation
Diffstat (limited to 'src/ats-tool')
-rw-r--r-- | src/ats-tool/gnunet-ats.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c index 0f6609365a..766f2fe2ab 100644 --- a/src/ats-tool/gnunet-ats.c +++ b/src/ats-tool/gnunet-ats.c @@ -284,13 +284,31 @@ transport_addr_to_str_cb (void *cls, } +/** + * Closure for #find_address_it(). + */ struct AddressFindCtx { + /** + * Address we are looking for. + */ const struct GNUNET_HELLO_Address *src; + + /** + * Where to write the `struct ATSAddress` if we found one that matches. + */ struct ATSAddress *res; }; +/** + * Find address corresponding to a given peer. + * + * @param cls the `struct AddressFindCtx` + * @param key peer identity + * @param value the `struct ATSAddress *` for an existing address + * @return #GNUNET_NO if we found a match, #GNUNET_YES if not + */ static int find_address_it (void *cls, const struct GNUNET_PeerIdentity *key, |