aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-19 01:05:57 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-19 01:05:57 +0000
commitd769049a7db56037ea4aff3d9d8a8d42a373ec9c (patch)
treefdcce1b9036dd15ecacf496cc3f7a7beb977d228 /src/include/gnunet_transport_plugin.h
parent41db8e4309d6c674066850dbbf823e591121d0c1 (diff)
downloadgnunet-d769049a7db56037ea4aff3d9d8a8d42a373ec9c.tar.gz
gnunet-d769049a7db56037ea4aff3d9d8a8d42a373ec9c.zip
-indentation, doxygen
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h13
1 files changed, 8 insertions, 5 deletions
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
85 */ 85 */
86typedef void 86typedef void
87(*GNUNET_TRANSPORT_SessionStart) (void *cls, 87(*GNUNET_TRANSPORT_SessionStart) (void *cls,
88 struct GNUNET_HELLO_Address *address, 88 const struct GNUNET_HELLO_Address *address,
89 struct Session *session, 89 struct Session *session,
90 const struct GNUNET_ATS_Information *ats, 90 const struct GNUNET_ATS_Information *ats,
91 uint32_t ats_count); 91 uint32_t ats_count);
92 92
93
93/** 94/**
94 * Function called by the transport for each received message. 95 * Function called by the transport for each received message.
95 * This function should also be called with "NULL" for the 96 * This function should also be called with "NULL" for the
@@ -120,8 +121,9 @@ typedef struct GNUNET_TIME_Relative
120 121
121 122
122/** 123/**
123 * Function that will be called to figure if an address is an 124 * Function that can be called by plugins to figure if an address is
124 * loopback, LAN, WAN etc. address 125 * an loopback, LAN or WAN address. Ultimately invokes
126 * #GNUNET_ATS_address_get_type().
125 * 127 *
126 * @param cls closure 128 * @param cls closure
127 * @param addr binary address 129 * @param addr binary address
@@ -152,6 +154,7 @@ typedef void
152 const struct GNUNET_ATS_Information *ats, 154 const struct GNUNET_ATS_Information *ats,
153 uint32_t ats_count); 155 uint32_t ats_count);
154 156
157
155/** 158/**
156 * Function that will be called for each address the transport 159 * Function that will be called for each address the transport
157 * is aware that it might be reachable under. 160 * is aware that it might be reachable under.
@@ -587,7 +590,7 @@ typedef int
587/** 590/**
588 * Function to obtain the network type for a session 591 * Function to obtain the network type for a session
589 * 592 *
590 * @param cls closure ('struct Plugin*') 593 * @param cls closure (`struct Plugin *`)
591 * @param session the session 594 * @param session the session
592 * @return the network type 595 * @return the network type
593 */ 596 */
@@ -718,7 +721,7 @@ struct GNUNET_TRANSPORT_PluginFunctions
718 721
719 /** 722 /**
720 * Function that will be called tell the plugin to create a session 723 * Function that will be called tell the plugin to create a session
721 * object 724 * object.
722 */ 725 */
723 GNUNET_TRANSPORT_CreateSession get_session; 726 GNUNET_TRANSPORT_CreateSession get_session;
724 727