diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-10-10 15:47:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-10-10 15:47:00 +0000 |
commit | 93085e8a2991fde229400b588a5930e9fcca0d75 (patch) | |
tree | 0384246adbd96fa0138a46ad5fecb777aa40e789 /src/testbed/gnunet-service-testbed_links.h | |
parent | 2bf962c76bb82c1f38acea42c7bdfb241e2582e7 (diff) | |
download | gnunet-93085e8a2991fde229400b588a5930e9fcca0d75.tar.gz gnunet-93085e8a2991fde229400b588a5930e9fcca0d75.zip |
migrating testbed to new service API
Diffstat (limited to 'src/testbed/gnunet-service-testbed_links.h')
-rw-r--r-- | src/testbed/gnunet-service-testbed_links.h | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/src/testbed/gnunet-service-testbed_links.h b/src/testbed/gnunet-service-testbed_links.h index b39851ed7..09764b99a 100644 --- a/src/testbed/gnunet-service-testbed_links.h +++ b/src/testbed/gnunet-service-testbed_links.h | |||
@@ -94,7 +94,7 @@ extern unsigned int GST_slave_list_size; | |||
94 | * Cleans up the neighbour list | 94 | * Cleans up the neighbour list |
95 | */ | 95 | */ |
96 | void | 96 | void |
97 | GST_neighbour_list_clean(); | 97 | GST_neighbour_list_clean (void); |
98 | 98 | ||
99 | 99 | ||
100 | /** | 100 | /** |
@@ -112,7 +112,7 @@ GST_get_neighbour (uint32_t id); | |||
112 | * Function to cleanup the neighbour connect contexts | 112 | * Function to cleanup the neighbour connect contexts |
113 | */ | 113 | */ |
114 | void | 114 | void |
115 | GST_free_nccq (); | 115 | GST_free_nccq (void); |
116 | 116 | ||
117 | 117 | ||
118 | /** | 118 | /** |
@@ -128,10 +128,9 @@ struct NeighbourConnectNotification; | |||
128 | * @param cls the closure given to GST_neighbour_get_connection() | 128 | * @param cls the closure given to GST_neighbour_get_connection() |
129 | * @param controller the controller handle to the neighbour | 129 | * @param controller the controller handle to the neighbour |
130 | */ | 130 | */ |
131 | typedef void (*GST_NeigbourConnectNotifyCallback) (void *cls, | 131 | typedef void |
132 | struct | 132 | (*GST_NeigbourConnectNotifyCallback) (void *cls, |
133 | GNUNET_TESTBED_Controller | 133 | struct GNUNET_TESTBED_Controller *controller); |
134 | *controller); | ||
135 | 134 | ||
136 | 135 | ||
137 | /** | 136 | /** |
@@ -181,19 +180,28 @@ GST_create_neighbour (struct GNUNET_TESTBED_Host *host); | |||
181 | 180 | ||
182 | 181 | ||
183 | /** | 182 | /** |
184 | * Message handler for GNUNET_MESSAGE_TYPE_TESTBED_LCONTROLLERS message | 183 | * Message handler for #GNUNET_MESSAGE_TYPE_TESTBED_LCONTROLLERS message |
185 | * | 184 | * |
186 | * @param cls NULL | 185 | * @param cls identification of the client |
187 | * @param client identification of the client | 186 | * @param msg the actual message |
188 | * @param message the actual message | ||
189 | */ | 187 | */ |
190 | void | 188 | void |
191 | GST_handle_link_controllers (void *cls, struct GNUNET_SERVER_Client *client, | 189 | handle_link_controllers (void *cls, |
192 | const struct GNUNET_MessageHeader *message); | 190 | const struct GNUNET_TESTBED_ControllerLinkRequest *msg); |
191 | |||
192 | |||
193 | /** | ||
194 | * Clean up @a client handle if we stored any via #handle_link_controllers(), | ||
195 | * the given client disconnected. | ||
196 | * | ||
197 | * @param client the client that is history | ||
198 | */ | ||
199 | void | ||
200 | GST_link_notify_disconnect (struct GNUNET_SERVICE_Client *client); | ||
193 | 201 | ||
194 | 202 | ||
195 | /** | 203 | /** |
196 | * Cleans up the slave list | 204 | * Cleans up the slave list |
197 | */ | 205 | */ |
198 | void | 206 | void |
199 | GST_slave_list_clear (); | 207 | GST_slave_list_clear (void); |