diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:09:28 +0200 |
commit | c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch) | |
tree | cac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/testbed/gnunet-service-testbed_links.h | |
parent | fbb71d527c7d6babf269a8fefce1db291b9f7068 (diff) | |
download | gnunet-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.h | 33 |
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 | */ |
38 | struct Slave { | 38 | struct 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 | */ |
95 | void | 96 | void |
96 | GST_neighbour_list_clean(void); | 97 | GST_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 | */ |
106 | struct Neighbour * | 107 | struct Neighbour * |
107 | GST_get_neighbour(uint32_t id); | 108 | GST_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 | */ |
113 | void | 114 | void |
114 | GST_free_nccq(void); | 115 | GST_free_nccq (void); |
115 | 116 | ||
116 | 117 | ||
117 | /** | 118 | /** |
@@ -129,7 +130,8 @@ struct NeighbourConnectNotification; | |||
129 | */ | 130 | */ |
130 | typedef void | 131 | typedef 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 | */ |
146 | struct NeighbourConnectNotification * | 148 | struct NeighbourConnectNotification * |
147 | GST_neighbour_get_connection(struct Neighbour *n, | 149 | GST_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 | */ |
157 | void | 159 | void |
158 | GST_neighbour_get_connection_cancel(struct NeighbourConnectNotification *h); | 160 | GST_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 | */ |
168 | void | 170 | void |
169 | GST_neighbour_release_connection(struct Neighbour *n); | 171 | GST_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 | */ |
177 | struct Neighbour * | 179 | struct Neighbour * |
178 | GST_create_neighbour(struct GNUNET_TESTBED_Host *host); | 180 | GST_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 | */ |
187 | void | 189 | void |
188 | handle_link_controllers(void *cls, | 190 | handle_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 | */ |
198 | void | 201 | void |
199 | GST_link_notify_disconnect(struct GNUNET_SERVICE_Client *client); | 202 | GST_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 | */ |
205 | void | 208 | void |
206 | GST_slave_list_clear(void); | 209 | GST_slave_list_clear (void); |