diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-08-30 12:24:18 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-08-30 12:24:18 +0000 |
commit | c92948f72526fe599680c06cbe80d0ffdc11f597 (patch) | |
tree | b5886d700fa2fbcf8abbc18eacd2e18ef2589180 /src | |
parent | 7936cab9bd741a9ff30362c8495daa29f1874b2e (diff) | |
download | gnunet-c92948f72526fe599680c06cbe80d0ffdc11f597.tar.gz gnunet-c92948f72526fe599680c06cbe80d0ffdc11f597.zip |
missing changes to headers
Diffstat (limited to 'src')
-rw-r--r-- | src/consensus/gnunet-service-consensus.c | 7 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 16 | ||||
-rw-r--r-- | src/include/gnunet_set_service.h | 11 |
3 files changed, 30 insertions, 4 deletions
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c index 40abf912a..acae74eaf 100644 --- a/src/consensus/gnunet-service-consensus.c +++ b/src/consensus/gnunet-service-consensus.c | |||
@@ -324,8 +324,6 @@ have_exp_subround_finished (const struct ConsensusSession *session) | |||
324 | static void | 324 | static void |
325 | destroy_session (struct ConsensusSession *session) | 325 | destroy_session (struct ConsensusSession *session) |
326 | { | 326 | { |
327 | int i; | ||
328 | |||
329 | GNUNET_CONTAINER_DLL_remove (sessions_head, sessions_tail, session); | 327 | GNUNET_CONTAINER_DLL_remove (sessions_head, sessions_tail, session); |
330 | if (NULL != session->element_set) | 328 | if (NULL != session->element_set) |
331 | { | 329 | { |
@@ -359,6 +357,7 @@ destroy_session (struct ConsensusSession *session) | |||
359 | } | 357 | } |
360 | if (NULL != session->info) | 358 | if (NULL != session->info) |
361 | { | 359 | { |
360 | int i; | ||
362 | for (i = 0; i < session->num_peers; i++) | 361 | for (i = 0; i < session->num_peers; i++) |
363 | { | 362 | { |
364 | struct ConsensusPeerInformation *cpi; | 363 | struct ConsensusPeerInformation *cpi; |
@@ -1349,9 +1348,9 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
1349 | { | 1348 | { |
1350 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected, destroying session\n"); | 1349 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected, destroying session\n"); |
1351 | destroy_session (session); | 1350 | destroy_session (session); |
1351 | return; | ||
1352 | } | 1352 | } |
1353 | else | 1353 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected, but waiting for consensus to finish\n"); |
1354 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected, but waiting for consensus to finish\n"); | ||
1355 | } | 1354 | } |
1356 | 1355 | ||
1357 | 1356 | ||
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index de585c9af..bf8d4cf7f 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -1918,6 +1918,22 @@ extern "C" | |||
1918 | */ | 1918 | */ |
1919 | #define GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_DONE 593 | 1919 | #define GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_DONE 593 |
1920 | 1920 | ||
1921 | /** | ||
1922 | * Ask the set service to prepare a copy of a set. | ||
1923 | */ | ||
1924 | #define GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_PREPARE 594 | ||
1925 | |||
1926 | /** | ||
1927 | * Give the client an ID for connecting to the set's copy. | ||
1928 | */ | ||
1929 | #define GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE 595 | ||
1930 | |||
1931 | /** | ||
1932 | * Sent by the client to the server to connect to an existing, | ||
1933 | * lazily copied set. | ||
1934 | */ | ||
1935 | #define GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT 596 | ||
1936 | |||
1921 | 1937 | ||
1922 | /******************************************************************************* | 1938 | /******************************************************************************* |
1923 | * TESTBED LOGGER message types | 1939 | * TESTBED LOGGER message types |
diff --git a/src/include/gnunet_set_service.h b/src/include/gnunet_set_service.h index e28fad754..1000aea7b 100644 --- a/src/include/gnunet_set_service.h +++ b/src/include/gnunet_set_service.h | |||
@@ -223,6 +223,11 @@ typedef void | |||
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | typedef void | ||
227 | (*GNUNET_SET_CopyReadyCallback) (void *cls, | ||
228 | struct GNUNET_SET_Handle *copy); | ||
229 | |||
230 | |||
226 | /** | 231 | /** |
227 | * Create an empty set, supporting the specified operation. | 232 | * Create an empty set, supporting the specified operation. |
228 | * | 233 | * |
@@ -279,6 +284,12 @@ GNUNET_SET_remove_element (struct GNUNET_SET_Handle *set, | |||
279 | void *cont_cls); | 284 | void *cont_cls); |
280 | 285 | ||
281 | 286 | ||
287 | void | ||
288 | GNUNET_SET_copy_lazy (struct GNUNET_SET_Handle *set, | ||
289 | GNUNET_SET_CopyReadyCallback cb, | ||
290 | void *cls); | ||
291 | |||
292 | |||
282 | /** | 293 | /** |
283 | * Destroy the set handle, and free all associated resources. | 294 | * Destroy the set handle, and free all associated resources. |
284 | * Iterations must have completed (or be explicitly canceled) | 295 | * Iterations must have completed (or be explicitly canceled) |