diff options
author | Florian Dold <florian.dold@gmail.com> | 2014-02-03 21:25:53 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2014-02-03 21:25:53 +0000 |
commit | 8a3563b5c242b60aa4b7d2b9a3c3607ef8dcbadb (patch) | |
tree | f4b85c248403ba6783db017930b2258f3e61e18a /src/include/gnunet_consensus_service.h | |
parent | 694581b42a78419c1c8ffc31ee873484ff93d79b (diff) | |
download | gnunet-8a3563b5c242b60aa4b7d2b9a3c3607ef8dcbadb.tar.gz gnunet-8a3563b5c242b60aa4b7d2b9a3c3607ef8dcbadb.zip |
- consensus and secretsharing have both start time and deadline
Diffstat (limited to 'src/include/gnunet_consensus_service.h')
-rw-r--r-- | src/include/gnunet_consensus_service.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/gnunet_consensus_service.h b/src/include/gnunet_consensus_service.h index 3b08b2dee..ef799773f 100644 --- a/src/include/gnunet_consensus_service.h +++ b/src/include/gnunet_consensus_service.h | |||
@@ -72,6 +72,9 @@ struct GNUNET_CONSENSUS_Handle; | |||
72 | * Inclusion of the local peer is optional. | 72 | * Inclusion of the local peer is optional. |
73 | * @param session_id session identifier | 73 | * @param session_id session identifier |
74 | * Allows a group of peers to have more than consensus session. | 74 | * Allows a group of peers to have more than consensus session. |
75 | * @param start start time of the consensus, conclude should be called before | ||
76 | * the start time. | ||
77 | * @param deadline time when the consensus should have concluded | ||
75 | * @param new_element_cb callback, called when a new element is added to the set by | 78 | * @param new_element_cb callback, called when a new element is added to the set by |
76 | * another peer. Also called when an error occurs. | 79 | * another peer. Also called when an error occurs. |
77 | * @param new_element_cls closure for new_element | 80 | * @param new_element_cls closure for new_element |
@@ -82,6 +85,8 @@ GNUNET_CONSENSUS_create (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
82 | unsigned int num_peers, | 85 | unsigned int num_peers, |
83 | const struct GNUNET_PeerIdentity *peers, | 86 | const struct GNUNET_PeerIdentity *peers, |
84 | const struct GNUNET_HashCode *session_id, | 87 | const struct GNUNET_HashCode *session_id, |
88 | struct GNUNET_TIME_Absolute start, | ||
89 | struct GNUNET_TIME_Absolute deadline, | ||
85 | GNUNET_CONSENSUS_ElementCallback new_element_cb, | 90 | GNUNET_CONSENSUS_ElementCallback new_element_cb, |
86 | void *new_element_cls); | 91 | void *new_element_cls); |
87 | 92 | ||
@@ -135,14 +140,11 @@ typedef void (*GNUNET_CONSENSUS_ConcludeCallback) (void *cls); | |||
135 | * try to conclude the consensus within a given time window. | 140 | * try to conclude the consensus within a given time window. |
136 | * | 141 | * |
137 | * @param consensus consensus session | 142 | * @param consensus consensus session |
138 | * @param deadline deadline after which the conculde callback | ||
139 | * whill be called | ||
140 | * @param conclude called when the conclusion was successful | 143 | * @param conclude called when the conclusion was successful |
141 | * @param conclude_cls closure for the conclude callback | 144 | * @param conclude_cls closure for the conclude callback |
142 | */ | 145 | */ |
143 | void | 146 | void |
144 | GNUNET_CONSENSUS_conclude (struct GNUNET_CONSENSUS_Handle *consensus, | 147 | GNUNET_CONSENSUS_conclude (struct GNUNET_CONSENSUS_Handle *consensus, |
145 | struct GNUNET_TIME_Absolute deadline, | ||
146 | GNUNET_CONSENSUS_ConcludeCallback conclude, | 148 | GNUNET_CONSENSUS_ConcludeCallback conclude, |
147 | void *conclude_cls); | 149 | void *conclude_cls); |
148 | 150 | ||