summaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_links.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed/gnunet-service-testbed_links.h')
-rw-r--r--src/testbed/gnunet-service-testbed_links.h61
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 */
38struct Slave 38struct 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 */
96void 95void
97GST_neighbour_list_clean (void); 96GST_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 */
107struct Neighbour * 106struct Neighbour *
108GST_get_neighbour (uint32_t id); 107GST_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 */
114void 113void
115GST_free_nccq (void); 114GST_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 */
147struct NeighbourConnectNotification * 146struct NeighbourConnectNotification *
148GST_neighbour_get_connection (struct Neighbour *n, 147GST_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 */
158void 157void
159GST_neighbour_get_connection_cancel (struct NeighbourConnectNotification *h); 158GST_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 */
169void 168void
170GST_neighbour_release_connection (struct Neighbour *n); 169GST_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 */
178struct Neighbour * 177struct Neighbour *
179GST_create_neighbour (struct GNUNET_TESTBED_Host *host); 178GST_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 */
188void 187void
189handle_link_controllers (void *cls, 188handle_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 */
199void 198void
200GST_link_notify_disconnect (struct GNUNET_SERVICE_Client *client); 199GST_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 */
206void 205void
207GST_slave_list_clear (void); 206GST_slave_list_clear(void);