diff options
Diffstat (limited to 'src/testbed/gnunet-service-testbed_links.h')
-rw-r--r-- | src/testbed/gnunet-service-testbed_links.h | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/src/testbed/gnunet-service-testbed_links.h b/src/testbed/gnunet-service-testbed_links.h index e4824ede9..594ef29dc 100644 --- a/src/testbed/gnunet-service-testbed_links.h +++ b/src/testbed/gnunet-service-testbed_links.h | |||
@@ -1,22 +1,22 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2008--2013 GNUnet e.V. | 3 | Copyright (C) 2008--2013 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 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file testbed/gnunet-service-testbed_links.h | 22 | * @file testbed/gnunet-service-testbed_links.h |
@@ -35,8 +35,7 @@ struct Neighbour; | |||
35 | /** | 35 | /** |
36 | * Structure representing a connected(directly-linked) controller | 36 | * Structure representing a connected(directly-linked) controller |
37 | */ | 37 | */ |
38 | struct Slave | 38 | struct Slave { |
39 | { | ||
40 | /** | 39 | /** |
41 | * The controller process handle if we had started the controller | 40 | * The controller process handle if we had started the controller |
42 | */ | 41 | */ |
@@ -94,7 +93,7 @@ extern unsigned int GST_slave_list_size; | |||
94 | * Cleans up the neighbour list | 93 | * Cleans up the neighbour list |
95 | */ | 94 | */ |
96 | void | 95 | void |
97 | GST_neighbour_list_clean (void); | 96 | GST_neighbour_list_clean(void); |
98 | 97 | ||
99 | 98 | ||
100 | /** | 99 | /** |
@@ -105,14 +104,14 @@ GST_neighbour_list_clean (void); | |||
105 | * the list size or neighbour at that index is NULL) | 104 | * the list size or neighbour at that index is NULL) |
106 | */ | 105 | */ |
107 | struct Neighbour * | 106 | struct Neighbour * |
108 | GST_get_neighbour (uint32_t id); | 107 | GST_get_neighbour(uint32_t id); |
109 | 108 | ||
110 | 109 | ||
111 | /** | 110 | /** |
112 | * Function to cleanup the neighbour connect contexts | 111 | * Function to cleanup the neighbour connect contexts |
113 | */ | 112 | */ |
114 | void | 113 | void |
115 | GST_free_nccq (void); | 114 | GST_free_nccq(void); |
116 | 115 | ||
117 | 116 | ||
118 | /** | 117 | /** |
@@ -145,9 +144,9 @@ typedef void | |||
145 | * @param cb_cls the closure for the above callback | 144 | * @param cb_cls the closure for the above callback |
146 | */ | 145 | */ |
147 | struct NeighbourConnectNotification * | 146 | struct NeighbourConnectNotification * |
148 | GST_neighbour_get_connection (struct Neighbour *n, | 147 | GST_neighbour_get_connection(struct Neighbour *n, |
149 | GST_NeigbourConnectNotifyCallback cb, | 148 | GST_NeigbourConnectNotifyCallback cb, |
150 | void *cb_cls); | 149 | void *cb_cls); |
151 | 150 | ||
152 | 151 | ||
153 | /** | 152 | /** |
@@ -156,7 +155,7 @@ GST_neighbour_get_connection (struct Neighbour *n, | |||
156 | * @param h the notification handle | 155 | * @param h the notification handle |
157 | */ | 156 | */ |
158 | void | 157 | void |
159 | GST_neighbour_get_connection_cancel (struct NeighbourConnectNotification *h); | 158 | GST_neighbour_get_connection_cancel(struct NeighbourConnectNotification *h); |
160 | 159 | ||
161 | 160 | ||
162 | /** | 161 | /** |
@@ -167,7 +166,7 @@ GST_neighbour_get_connection_cancel (struct NeighbourConnectNotification *h); | |||
167 | * @param n the neighbour whose connection can be closed | 166 | * @param n the neighbour whose connection can be closed |
168 | */ | 167 | */ |
169 | void | 168 | void |
170 | GST_neighbour_release_connection (struct Neighbour *n); | 169 | GST_neighbour_release_connection(struct Neighbour *n); |
171 | 170 | ||
172 | 171 | ||
173 | /** | 172 | /** |
@@ -176,7 +175,7 @@ GST_neighbour_release_connection (struct Neighbour *n); | |||
176 | * @param host the host of the neighbour | 175 | * @param host the host of the neighbour |
177 | */ | 176 | */ |
178 | struct Neighbour * | 177 | struct Neighbour * |
179 | GST_create_neighbour (struct GNUNET_TESTBED_Host *host); | 178 | GST_create_neighbour(struct GNUNET_TESTBED_Host *host); |
180 | 179 | ||
181 | 180 | ||
182 | /** | 181 | /** |
@@ -186,8 +185,8 @@ GST_create_neighbour (struct GNUNET_TESTBED_Host *host); | |||
186 | * @param msg the actual message | 185 | * @param msg the actual message |
187 | */ | 186 | */ |
188 | void | 187 | void |
189 | handle_link_controllers (void *cls, | 188 | handle_link_controllers(void *cls, |
190 | const struct GNUNET_TESTBED_ControllerLinkRequest *msg); | 189 | const struct GNUNET_TESTBED_ControllerLinkRequest *msg); |
191 | 190 | ||
192 | 191 | ||
193 | /** | 192 | /** |
@@ -197,11 +196,11 @@ handle_link_controllers (void *cls, | |||
197 | * @param client the client that is history | 196 | * @param client the client that is history |
198 | */ | 197 | */ |
199 | void | 198 | void |
200 | GST_link_notify_disconnect (struct GNUNET_SERVICE_Client *client); | 199 | GST_link_notify_disconnect(struct GNUNET_SERVICE_Client *client); |
201 | 200 | ||
202 | 201 | ||
203 | /** | 202 | /** |
204 | * Cleans up the slave list | 203 | * Cleans up the slave list |
205 | */ | 204 | */ |
206 | void | 205 | void |
207 | GST_slave_list_clear (void); | 206 | GST_slave_list_clear(void); |