aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_consensus_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_consensus_service.h')
-rw-r--r--src/include/gnunet_consensus_service.h8
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 */
143void 146void
144GNUNET_CONSENSUS_conclude (struct GNUNET_CONSENSUS_Handle *consensus, 147GNUNET_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