diff options
Diffstat (limited to 'src/include/gnunet_transport_hello_service.h')
-rw-r--r-- | src/include/gnunet_transport_hello_service.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/include/gnunet_transport_hello_service.h b/src/include/gnunet_transport_hello_service.h index fe863c058..512103c54 100644 --- a/src/include/gnunet_transport_hello_service.h +++ b/src/include/gnunet_transport_hello_service.h | |||
@@ -16,7 +16,7 @@ | |||
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 |
@@ -58,9 +58,7 @@ extern "C" { | |||
58 | * classes to filter addresses by which domain they make | 58 | * classes to filter addresses by which domain they make |
59 | * sense to be used in. These are used in a bitmask. | 59 | * sense to be used in. These are used in a bitmask. |
60 | */ | 60 | */ |
61 | enum GNUNET_TRANSPORT_AddressClass | 61 | enum GNUNET_TRANSPORT_AddressClass { |
62 | { | ||
63 | |||
64 | /** | 62 | /** |
65 | * No address. | 63 | * No address. |
66 | */ | 64 | */ |
@@ -108,7 +106,6 @@ enum GNUNET_TRANSPORT_AddressClass | |||
108 | * Bitmask for "any" address. | 106 | * Bitmask for "any" address. |
109 | */ | 107 | */ |
110 | GNUNET_TRANSPORT_AC_ANY = 65535 | 108 | GNUNET_TRANSPORT_AC_ANY = 65535 |
111 | |||
112 | }; | 109 | }; |
113 | 110 | ||
114 | 111 | ||
@@ -141,10 +138,10 @@ struct GNUNET_TRANSPORT_HelloGetHandle; | |||
141 | * @return handle to cancel the operation | 138 | * @return handle to cancel the operation |
142 | */ | 139 | */ |
143 | struct GNUNET_TRANSPORT_HelloGetHandle * | 140 | struct GNUNET_TRANSPORT_HelloGetHandle * |
144 | GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg, | 141 | GNUNET_TRANSPORT_hello_get(const struct GNUNET_CONFIGURATION_Handle *cfg, |
145 | enum GNUNET_TRANSPORT_AddressClass ac, | 142 | enum GNUNET_TRANSPORT_AddressClass ac, |
146 | GNUNET_TRANSPORT_HelloUpdateCallback rec, | 143 | GNUNET_TRANSPORT_HelloUpdateCallback rec, |
147 | void *rec_cls); | 144 | void *rec_cls); |
148 | 145 | ||
149 | 146 | ||
150 | /** | 147 | /** |
@@ -153,7 +150,7 @@ GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
153 | * @param ghh handle to cancel | 150 | * @param ghh handle to cancel |
154 | */ | 151 | */ |
155 | void | 152 | void |
156 | GNUNET_TRANSPORT_hello_get_cancel (struct GNUNET_TRANSPORT_HelloGetHandle *ghh); | 153 | GNUNET_TRANSPORT_hello_get_cancel(struct GNUNET_TRANSPORT_HelloGetHandle *ghh); |
157 | 154 | ||
158 | 155 | ||
159 | /** | 156 | /** |
@@ -183,9 +180,9 @@ typedef void (*GNUNET_TRANSPORT_AddressCallback) ( | |||
183 | * @return #GNUNET_OK if hello was well-formed, #GNUNET_SYSERR if not | 180 | * @return #GNUNET_OK if hello was well-formed, #GNUNET_SYSERR if not |
184 | */ | 181 | */ |
185 | int | 182 | int |
186 | GNUNET_TRANSPORT_hello_parse (const struct GNUNET_MessageHeader *hello, | 183 | GNUNET_TRANSPORT_hello_parse(const struct GNUNET_MessageHeader *hello, |
187 | GNUNET_TRANSPORT_AddressCallback cb, | 184 | GNUNET_TRANSPORT_AddressCallback cb, |
188 | void *cb_cls); | 185 | void *cb_cls); |
189 | 186 | ||
190 | 187 | ||
191 | #if 0 /* keep Emacsens' auto-indent happy */ | 188 | #if 0 /* keep Emacsens' auto-indent happy */ |