diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-10-05 21:26:56 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-10-05 21:26:56 +0000 |
commit | a11e17158609766f29c40de6daecf5ce02b38e6c (patch) | |
tree | 1fbce1a057d5e74415781074a429d53751b43111 /src/include/gnunet_set_service.h | |
parent | 4dcb414e2faabc800577c25dec3b63e3ceaaa84b (diff) | |
download | gnunet-a11e17158609766f29c40de6daecf5ce02b38e6c.tar.gz gnunet-a11e17158609766f29c40de6daecf5ce02b38e6c.zip |
work on consensus and set
- evil peers for consensus
- various fixes for consensus and set
Diffstat (limited to 'src/include/gnunet_set_service.h')
-rw-r--r-- | src/include/gnunet_set_service.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/gnunet_set_service.h b/src/include/gnunet_set_service.h index f9ae122b4..7246f9b42 100644 --- a/src/include/gnunet_set_service.h +++ b/src/include/gnunet_set_service.h | |||
@@ -470,6 +470,26 @@ GNUNET_SET_iterate (struct GNUNET_SET_Handle *set, | |||
470 | void | 470 | void |
471 | GNUNET_SET_iterate_cancel (struct GNUNET_SET_Handle *set); | 471 | GNUNET_SET_iterate_cancel (struct GNUNET_SET_Handle *set); |
472 | 472 | ||
473 | /** | ||
474 | * Create a copy of an element. The copy | ||
475 | * must be GNUNET_free-d by the caller. | ||
476 | * | ||
477 | * @param element the element to copy | ||
478 | * @return the copied element | ||
479 | */ | ||
480 | struct GNUNET_SET_Element * | ||
481 | GNUNET_SET_element_dup (const struct GNUNET_SET_Element *element); | ||
482 | |||
483 | /** | ||
484 | * Hash a set element. | ||
485 | * | ||
486 | * @param element the element that should be hashed | ||
487 | * @param ret_hash a pointer to where the hash of @a element | ||
488 | * should be stored | ||
489 | */ | ||
490 | void | ||
491 | GNUNET_SET_element_hash (const struct GNUNET_SET_Element *element, struct GNUNET_HashCode *ret_hash); | ||
492 | |||
473 | 493 | ||
474 | #if 0 /* keep Emacsens' auto-indent happy */ | 494 | #if 0 /* keep Emacsens' auto-indent happy */ |
475 | { | 495 | { |