aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_consensus_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-05 21:10:48 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-05 21:10:48 +0000
commit4989f1f56b69db11da245ec92a981f1ee4c67a0b (patch)
treeea535511c830e3550fe36db3feb1336399cfccdd /src/include/gnunet_consensus_service.h
parentf4dd1ae2a22c3a3e53be15494649730ca46d544c (diff)
downloadgnunet-4989f1f56b69db11da245ec92a981f1ee4c67a0b.tar.gz
gnunet-4989f1f56b69db11da245ec92a981f1ee4c67a0b.zip
-fixing indentation/doxygen/style issues and some memory leaks in gnunet-consensus-profiler
Diffstat (limited to 'src/include/gnunet_consensus_service.h')
-rw-r--r--src/include/gnunet_consensus_service.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/gnunet_consensus_service.h b/src/include/gnunet_consensus_service.h
index b7085a801..cc91a0ae5 100644
--- a/src/include/gnunet_consensus_service.h
+++ b/src/include/gnunet_consensus_service.h
@@ -88,14 +88,14 @@ GNUNET_CONSENSUS_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
88 88
89 89
90/** 90/**
91 * Called when an insertion (transmission to consensus service, 91 * Called when an insertion (transmission to consensus service, which
92 * which does not imply fully consensus on this element with 92 * does not imply fully consensus on this element with all other
93 * all other peers) was successful. 93 * peers) was successful. May not call GNUNET_CONSENSUS_destroy();
94 * May not call GNUNET_CONSENSUS_destroy; schedule a task to call 94 * schedule a task to call GNUNET_CONSENSUS_destroy() instead (if
95 * GNUNET_CONSENSUS_destroy instead. 95 * needed).
96 * 96 *
97 * @param cls 97 * @param cls
98 * @param success GNUNET_OK on success, GNUNET_SYSERR if 98 * @param success #GNUNET_OK on success, #GNUNET_SYSERR if
99 * the insertion and thus the consensus failed for good 99 * the insertion and thus the consensus failed for good
100 */ 100 */
101typedef void (*GNUNET_CONSENSUS_InsertDoneCallback) (void *cls, 101typedef void (*GNUNET_CONSENSUS_InsertDoneCallback) (void *cls,
@@ -104,16 +104,16 @@ typedef void (*GNUNET_CONSENSUS_InsertDoneCallback) (void *cls,
104 104
105/** 105/**
106 * Insert an element in the set being reconsiled. Only transmit changes to 106 * Insert an element in the set being reconsiled. Only transmit changes to
107 * other peers if "GNUNET_CONSENSUS_begin" has been called. 107 * other peers if GNUNET_CONSENSUS_begin() has been called.
108 * Must not be called after "GNUNET_CONSENSUS_conclude". 108 * Must not be called after GNUNET_CONSENSUS_conclude().
109 * May not call GNUNET_CONSENSUS_destroy; schedule a task to call 109 * May not call GNUNET_CONSENSUS_destroy(); schedule a task to call
110 * GNUNET_CONSENSUS_destroy instead. 110 * GNUNET_CONSENSUS_destroy() instead (if needed).
111 * 111 *
112 * @param consensus handle for the consensus session 112 * @param consensus handle for the consensus session
113 * @param element the element to be inserted 113 * @param element the element to be inserted
114 * @param idc function called when we are done with this element and it 114 * @param idc function called when we are done with this element and it
115 * is thus allowed to call GNUNET_CONSENSUS_insert again 115 * is thus allowed to call GNUNET_CONSENSUS_insert() again
116 * @param idc_cls closure for 'idc' 116 * @param idc_cls closure for @a idc
117 */ 117 */
118void 118void
119GNUNET_CONSENSUS_insert (struct GNUNET_CONSENSUS_Handle *consensus, 119GNUNET_CONSENSUS_insert (struct GNUNET_CONSENSUS_Handle *consensus,