diff options
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index ed5244987..12ecb88f2 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @author Christian Grothoff | 22 | * @author Christian Grothoff |
@@ -134,9 +134,9 @@ typedef struct GNUNET_TIME_Relative | |||
134 | * @return type of the network the address belongs to | 134 | * @return type of the network the address belongs to |
135 | */ | 135 | */ |
136 | typedef enum GNUNET_NetworkType | 136 | typedef enum GNUNET_NetworkType |
137 | (*GNUNET_TRANSPORT_AddressToType) (void *cls, | 137 | (*GNUNET_TRANSPORT_AddressToType)(void *cls, |
138 | const struct sockaddr *addr, | 138 | const struct sockaddr *addr, |
139 | size_t addrlen); | 139 | size_t addrlen); |
140 | 140 | ||
141 | 141 | ||
142 | /** | 142 | /** |
@@ -203,8 +203,7 @@ typedef const struct GNUNET_MessageHeader * | |||
203 | * of this type as the first and only argument to the | 203 | * of this type as the first and only argument to the |
204 | * entry point of each transport plugin. | 204 | * entry point of each transport plugin. |
205 | */ | 205 | */ |
206 | struct GNUNET_TRANSPORT_PluginEnvironment | 206 | struct GNUNET_TRANSPORT_PluginEnvironment { |
207 | { | ||
208 | /** | 207 | /** |
209 | * Configuration to use. | 208 | * Configuration to use. |
210 | */ | 209 | */ |
@@ -277,7 +276,6 @@ struct GNUNET_TRANSPORT_PluginEnvironment | |||
277 | * UDP) can ignore this value. | 276 | * UDP) can ignore this value. |
278 | */ | 277 | */ |
279 | uint32_t max_connections; | 278 | uint32_t max_connections; |
280 | |||
281 | }; | 279 | }; |
282 | 280 | ||
283 | 281 | ||
@@ -550,8 +548,8 @@ typedef int | |||
550 | * @return the network type | 548 | * @return the network type |
551 | */ | 549 | */ |
552 | typedef enum GNUNET_NetworkType | 550 | typedef enum GNUNET_NetworkType |
553 | (*GNUNET_TRANSPORT_GetNetworkType) (void *cls, | 551 | (*GNUNET_TRANSPORT_GetNetworkType)(void *cls, |
554 | struct GNUNET_ATS_Session *session); | 552 | struct GNUNET_ATS_Session *session); |
555 | 553 | ||
556 | 554 | ||
557 | /** | 555 | /** |
@@ -562,8 +560,8 @@ typedef enum GNUNET_NetworkType | |||
562 | * @return the network type | 560 | * @return the network type |
563 | */ | 561 | */ |
564 | typedef enum GNUNET_NetworkType | 562 | typedef enum GNUNET_NetworkType |
565 | (*GNUNET_TRANSPORT_GetNetworkTypeForAddress) (void *cls, | 563 | (*GNUNET_TRANSPORT_GetNetworkTypeForAddress)(void *cls, |
566 | const struct GNUNET_HELLO_Address *address); | 564 | const struct GNUNET_HELLO_Address *address); |
567 | 565 | ||
568 | 566 | ||
569 | /** | 567 | /** |
@@ -606,9 +604,7 @@ typedef void | |||
606 | * Each plugin is required to return a pointer to a struct of this | 604 | * Each plugin is required to return a pointer to a struct of this |
607 | * type as the return value from its entry point. | 605 | * type as the return value from its entry point. |
608 | */ | 606 | */ |
609 | struct GNUNET_TRANSPORT_PluginFunctions | 607 | struct GNUNET_TRANSPORT_PluginFunctions { |
610 | { | ||
611 | |||
612 | /** | 608 | /** |
613 | * Closure for all of the callbacks. | 609 | * Closure for all of the callbacks. |
614 | */ | 610 | */ |