diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-27 01:18:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-27 01:19:18 +0100 |
commit | 6da407ad72fdca282094ccdb5558ece9638e3bd3 (patch) | |
tree | 9b93ef7431143588be591e97f2bb0409ff4493ef /src/scalarproduct | |
parent | 3112e64ef06f71b06e9f047f2c6dd1be0941a565 (diff) | |
download | gnunet-6da407ad72fdca282094ccdb5558ece9638e3bd3.tar.gz gnunet-6da407ad72fdca282094ccdb5558ece9638e3bd3.zip |
include set size in result callback, needed by consensus
Diffstat (limited to 'src/scalarproduct')
4 files changed, 8 insertions, 0 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c index b7b839b6f..ca92fb9ea 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c | |||
@@ -687,11 +687,13 @@ send_alices_cryptodata_message (struct AliceServiceSession *s) | |||
687 | * | 687 | * |
688 | * @param cls closure with the `struct AliceServiceSession` | 688 | * @param cls closure with the `struct AliceServiceSession` |
689 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK | 689 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK |
690 | * @param current_size current set size | ||
690 | * @param status what has happened with the set intersection? | 691 | * @param status what has happened with the set intersection? |
691 | */ | 692 | */ |
692 | static void | 693 | static void |
693 | cb_intersection_element_removed (void *cls, | 694 | cb_intersection_element_removed (void *cls, |
694 | const struct GNUNET_SET_Element *element, | 695 | const struct GNUNET_SET_Element *element, |
696 | uint64_t current_size, | ||
695 | enum GNUNET_SET_Status status) | 697 | enum GNUNET_SET_Status status) |
696 | { | 698 | { |
697 | struct AliceServiceSession *s = cls; | 699 | struct AliceServiceSession *s = cls; |
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c index 8a5b3a5b2..3851ca763 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_bob.c | |||
@@ -580,11 +580,13 @@ handle_alices_cryptodata_message (void *cls, | |||
580 | * | 580 | * |
581 | * @param cls closure with the `struct BobServiceSession` | 581 | * @param cls closure with the `struct BobServiceSession` |
582 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK | 582 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK |
583 | * @param current_size current set size | ||
583 | * @param status what has happened with the set intersection? | 584 | * @param status what has happened with the set intersection? |
584 | */ | 585 | */ |
585 | static void | 586 | static void |
586 | cb_intersection_element_removed (void *cls, | 587 | cb_intersection_element_removed (void *cls, |
587 | const struct GNUNET_SET_Element *element, | 588 | const struct GNUNET_SET_Element *element, |
589 | uint64_t current_size, | ||
588 | enum GNUNET_SET_Status status) | 590 | enum GNUNET_SET_Status status) |
589 | { | 591 | { |
590 | struct BobServiceSession *s = cls; | 592 | struct BobServiceSession *s = cls; |
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c index 697baa9bd..6d7a0a3b8 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c | |||
@@ -924,11 +924,13 @@ send_alices_cryptodata_message (struct AliceServiceSession *s) | |||
924 | * | 924 | * |
925 | * @param cls closure with the `struct AliceServiceSession` | 925 | * @param cls closure with the `struct AliceServiceSession` |
926 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK | 926 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK |
927 | * @param current_size current set size | ||
927 | * @param status what has happened with the set intersection? | 928 | * @param status what has happened with the set intersection? |
928 | */ | 929 | */ |
929 | static void | 930 | static void |
930 | cb_intersection_element_removed (void *cls, | 931 | cb_intersection_element_removed (void *cls, |
931 | const struct GNUNET_SET_Element *element, | 932 | const struct GNUNET_SET_Element *element, |
933 | uint64_t current_size, | ||
932 | enum GNUNET_SET_Status status) | 934 | enum GNUNET_SET_Status status) |
933 | { | 935 | { |
934 | struct AliceServiceSession *s = cls; | 936 | struct AliceServiceSession *s = cls; |
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index 5d2df017b..f3b5327f1 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c | |||
@@ -879,11 +879,13 @@ handle_alices_cryptodata_message (void *cls, | |||
879 | * | 879 | * |
880 | * @param cls closure with the `struct BobServiceSession` | 880 | * @param cls closure with the `struct BobServiceSession` |
881 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK | 881 | * @param element a result element, only valid if status is #GNUNET_SET_STATUS_OK |
882 | * @param current_size current set size | ||
882 | * @param status what has happened with the set intersection? | 883 | * @param status what has happened with the set intersection? |
883 | */ | 884 | */ |
884 | static void | 885 | static void |
885 | cb_intersection_element_removed (void *cls, | 886 | cb_intersection_element_removed (void *cls, |
886 | const struct GNUNET_SET_Element *element, | 887 | const struct GNUNET_SET_Element *element, |
888 | uint64_t current_size, | ||
887 | enum GNUNET_SET_Status status) | 889 | enum GNUNET_SET_Status status) |
888 | { | 890 | { |
889 | struct BobServiceSession *s = cls; | 891 | struct BobServiceSession *s = cls; |