aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_links.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/testbed/gnunet-service-testbed_links.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
downloadgnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.tar.gz
gnunet-c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207.zip
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/testbed/gnunet-service-testbed_links.h')
-rw-r--r--src/testbed/gnunet-service-testbed_links.h33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/testbed/gnunet-service-testbed_links.h b/src/testbed/gnunet-service-testbed_links.h
index 594ef29dc..021895b1c 100644
--- a/src/testbed/gnunet-service-testbed_links.h
+++ b/src/testbed/gnunet-service-testbed_links.h
@@ -35,7 +35,8 @@ 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{
39 /** 40 /**
40 * The controller process handle if we had started the controller 41 * The controller process handle if we had started the controller
41 */ 42 */
@@ -93,7 +94,7 @@ extern unsigned int GST_slave_list_size;
93 * Cleans up the neighbour list 94 * Cleans up the neighbour list
94 */ 95 */
95void 96void
96GST_neighbour_list_clean(void); 97GST_neighbour_list_clean (void);
97 98
98 99
99/** 100/**
@@ -104,14 +105,14 @@ GST_neighbour_list_clean(void);
104 * the list size or neighbour at that index is NULL) 105 * the list size or neighbour at that index is NULL)
105 */ 106 */
106struct Neighbour * 107struct Neighbour *
107GST_get_neighbour(uint32_t id); 108GST_get_neighbour (uint32_t id);
108 109
109 110
110/** 111/**
111 * Function to cleanup the neighbour connect contexts 112 * Function to cleanup the neighbour connect contexts
112 */ 113 */
113void 114void
114GST_free_nccq(void); 115GST_free_nccq (void);
115 116
116 117
117/** 118/**
@@ -129,7 +130,8 @@ struct NeighbourConnectNotification;
129 */ 130 */
130typedef void 131typedef void
131(*GST_NeigbourConnectNotifyCallback) (void *cls, 132(*GST_NeigbourConnectNotifyCallback) (void *cls,
132 struct GNUNET_TESTBED_Controller *controller); 133 struct GNUNET_TESTBED_Controller *
134 controller);
133 135
134 136
135/** 137/**
@@ -144,9 +146,9 @@ typedef void
144 * @param cb_cls the closure for the above callback 146 * @param cb_cls the closure for the above callback
145 */ 147 */
146struct NeighbourConnectNotification * 148struct NeighbourConnectNotification *
147GST_neighbour_get_connection(struct Neighbour *n, 149GST_neighbour_get_connection (struct Neighbour *n,
148 GST_NeigbourConnectNotifyCallback cb, 150 GST_NeigbourConnectNotifyCallback cb,
149 void *cb_cls); 151 void *cb_cls);
150 152
151 153
152/** 154/**
@@ -155,7 +157,7 @@ GST_neighbour_get_connection(struct Neighbour *n,
155 * @param h the notification handle 157 * @param h the notification handle
156 */ 158 */
157void 159void
158GST_neighbour_get_connection_cancel(struct NeighbourConnectNotification *h); 160GST_neighbour_get_connection_cancel (struct NeighbourConnectNotification *h);
159 161
160 162
161/** 163/**
@@ -166,7 +168,7 @@ GST_neighbour_get_connection_cancel(struct NeighbourConnectNotification *h);
166 * @param n the neighbour whose connection can be closed 168 * @param n the neighbour whose connection can be closed
167 */ 169 */
168void 170void
169GST_neighbour_release_connection(struct Neighbour *n); 171GST_neighbour_release_connection (struct Neighbour *n);
170 172
171 173
172/** 174/**
@@ -175,7 +177,7 @@ GST_neighbour_release_connection(struct Neighbour *n);
175 * @param host the host of the neighbour 177 * @param host the host of the neighbour
176 */ 178 */
177struct Neighbour * 179struct Neighbour *
178GST_create_neighbour(struct GNUNET_TESTBED_Host *host); 180GST_create_neighbour (struct GNUNET_TESTBED_Host *host);
179 181
180 182
181/** 183/**
@@ -185,8 +187,9 @@ GST_create_neighbour(struct GNUNET_TESTBED_Host *host);
185 * @param msg the actual message 187 * @param msg the actual message
186 */ 188 */
187void 189void
188handle_link_controllers(void *cls, 190handle_link_controllers (void *cls,
189 const struct GNUNET_TESTBED_ControllerLinkRequest *msg); 191 const struct
192 GNUNET_TESTBED_ControllerLinkRequest *msg);
190 193
191 194
192/** 195/**
@@ -196,11 +199,11 @@ handle_link_controllers(void *cls,
196 * @param client the client that is history 199 * @param client the client that is history
197 */ 200 */
198void 201void
199GST_link_notify_disconnect(struct GNUNET_SERVICE_Client *client); 202GST_link_notify_disconnect (struct GNUNET_SERVICE_Client *client);
200 203
201 204
202/** 205/**
203 * Cleans up the slave list 206 * Cleans up the slave list
204 */ 207 */
205void 208void
206GST_slave_list_clear(void); 209GST_slave_list_clear (void);