From d769049a7db56037ea4aff3d9d8a8d42a373ec9c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Jan 2015 01:05:57 +0000 Subject: -indentation, doxygen --- src/include/gnunet_container_lib.h | 14 ++++++++------ src/include/gnunet_transport_plugin.h | 13 ++++++++----- 2 files changed, 16 insertions(+), 11 deletions(-) (limited to 'src/include') diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h index 60082489c..12ab1ae02 100644 --- a/src/include/gnunet_container_lib.h +++ b/src/include/gnunet_container_lib.h @@ -612,9 +612,10 @@ enum GNUNET_CONTAINER_MultiHashMapOption * iterate, * #GNUNET_NO if not. */ -typedef int (*GNUNET_CONTAINER_HashMapIterator) (void *cls, - const struct GNUNET_HashCode *key, - void *value); +typedef int +(*GNUNET_CONTAINER_HashMapIterator) (void *cls, + const struct GNUNET_HashCode *key, + void *value); /** @@ -856,9 +857,10 @@ GNUNET_CONTAINER_multihashmap_get_multiple (const struct GNUNET_CONTAINER_MultiH * iterate, * #GNUNET_NO if not. */ -typedef int (*GNUNET_CONTAINER_PeerMapIterator) (void *cls, - const struct GNUNET_PeerIdentity *key, - void *value); +typedef int +(*GNUNET_CONTAINER_PeerMapIterator) (void *cls, + const struct GNUNET_PeerIdentity *key, + void *value); struct GNUNET_CONTAINER_MultiPeerMap; diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 90d6ed2c6..8ebb3a92b 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h @@ -85,11 +85,12 @@ typedef void */ typedef void (*GNUNET_TRANSPORT_SessionStart) (void *cls, - struct GNUNET_HELLO_Address *address, + const struct GNUNET_HELLO_Address *address, struct Session *session, const struct GNUNET_ATS_Information *ats, uint32_t ats_count); + /** * Function called by the transport for each received message. * This function should also be called with "NULL" for the @@ -120,8 +121,9 @@ typedef struct GNUNET_TIME_Relative /** - * Function that will be called to figure if an address is an - * loopback, LAN, WAN etc. address + * Function that can be called by plugins to figure if an address is + * an loopback, LAN or WAN address. Ultimately invokes + * #GNUNET_ATS_address_get_type(). * * @param cls closure * @param addr binary address @@ -152,6 +154,7 @@ typedef void const struct GNUNET_ATS_Information *ats, uint32_t ats_count); + /** * Function that will be called for each address the transport * is aware that it might be reachable under. @@ -587,7 +590,7 @@ typedef int /** * Function to obtain the network type for a session * - * @param cls closure ('struct Plugin*') + * @param cls closure (`struct Plugin *`) * @param session the session * @return the network type */ @@ -718,7 +721,7 @@ struct GNUNET_TRANSPORT_PluginFunctions /** * Function that will be called tell the plugin to create a session - * object + * object. */ GNUNET_TRANSPORT_CreateSession get_session; -- cgit v1.2.3