aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_nt_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_nt_lib.h')
-rw-r--r--src/include/gnunet_nt_lib.h40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/include/gnunet_nt_lib.h b/src/include/gnunet_nt_lib.h
index 1da92a79a..48f3d7352 100644
--- a/src/include/gnunet_nt_lib.h
+++ b/src/include/gnunet_nt_lib.h
@@ -1,19 +1,19 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2010-2015, 2018 GNUnet e.V. 3 Copyright (C) 2010-2015, 2018 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License, 7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version. 8 or (at your option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
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 */
@@ -32,8 +32,7 @@
32/** 32/**
33 * Types of networks (with separate quotas) we support. 33 * Types of networks (with separate quotas) we support.
34 */ 34 */
35enum GNUNET_NetworkType 35enum GNUNET_NetworkType {
36{
37 /** 36 /**
38 * Category of last resort. 37 * Category of last resort.
39 */ 38 */
@@ -68,7 +67,6 @@ enum GNUNET_NetworkType
68 * Number of network types supported by ATS 67 * Number of network types supported by ATS
69 */ 68 */
70#define GNUNET_NT_COUNT 6 69#define GNUNET_NT_COUNT 6
71
72}; 70};
73 71
74 72
@@ -79,7 +77,7 @@ enum GNUNET_NetworkType
79 * @return a string or NULL if invalid 77 * @return a string or NULL if invalid
80 */ 78 */
81const char * 79const char *
82GNUNET_NT_to_string (enum GNUNET_NetworkType net); 80GNUNET_NT_to_string(enum GNUNET_NetworkType net);
83 81
84 82
85/** 83/**
@@ -97,9 +95,9 @@ struct GNUNET_NT_InterfaceScanner;
97 * @return type of the network the address belongs to 95 * @return type of the network the address belongs to
98 */ 96 */
99enum GNUNET_NetworkType 97enum GNUNET_NetworkType
100GNUNET_NT_scanner_get_type (struct GNUNET_NT_InterfaceScanner *is, 98GNUNET_NT_scanner_get_type(struct GNUNET_NT_InterfaceScanner *is,
101 const struct sockaddr *addr, 99 const struct sockaddr *addr,
102 socklen_t addrlen); 100 socklen_t addrlen);
103 101
104 102
105/** 103/**
@@ -108,7 +106,7 @@ GNUNET_NT_scanner_get_type (struct GNUNET_NT_InterfaceScanner *is,
108 * @return scanner handle, NULL on error 106 * @return scanner handle, NULL on error
109 */ 107 */
110struct GNUNET_NT_InterfaceScanner * 108struct GNUNET_NT_InterfaceScanner *
111GNUNET_NT_scanner_init (void); 109GNUNET_NT_scanner_init(void);
112 110
113 111
114/** 112/**
@@ -117,7 +115,7 @@ GNUNET_NT_scanner_init (void);
117 * @param is scanner we are done with 115 * @param is scanner we are done with
118 */ 116 */
119void 117void
120GNUNET_NT_scanner_done (struct GNUNET_NT_InterfaceScanner *is); 118GNUNET_NT_scanner_done(struct GNUNET_NT_InterfaceScanner *is);
121 119
122 120
123#endif 121#endif