From f42770d1f169be156a830be52669bd49cb600124 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 Jun 2014 08:00:19 +0000 Subject: -doxygen, indentation --- src/ats-tool/gnunet-ats.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/ats-tool/gnunet-ats.c') diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c index 0f6609365..766f2fe2a 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, -- cgit v1.2.3