aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_consensus_service.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-06-03 10:53:49 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-06-03 10:53:49 +0000
commit68403fa780bf94ace2ebc13c2c09463cbbc0b57c (patch)
tree3442e4f25de90eab67c4f9813cb6e433c50b7482 /src/include/gnunet_consensus_service.h
parentfae7f583f2e11cac15fefcbefef64287ab6915d3 (diff)
downloadgnunet-68403fa780bf94ace2ebc13c2c09463cbbc0b57c.tar.gz
gnunet-68403fa780bf94ace2ebc13c2c09463cbbc0b57c.zip
- conclude for SET
- consensus with SET
Diffstat (limited to 'src/include/gnunet_consensus_service.h')
-rw-r--r--src/include/gnunet_consensus_service.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/include/gnunet_consensus_service.h b/src/include/gnunet_consensus_service.h
index 66d48e0e2..db7509976 100644
--- a/src/include/gnunet_consensus_service.h
+++ b/src/include/gnunet_consensus_service.h
@@ -39,28 +39,7 @@ extern "C"
39#include "gnunet_common.h" 39#include "gnunet_common.h"
40#include "gnunet_time_lib.h" 40#include "gnunet_time_lib.h"
41#include "gnunet_configuration_lib.h" 41#include "gnunet_configuration_lib.h"
42 42#include "gnunet_set_service.h"
43
44/**
45 * An element of the consensus set.
46 */
47struct GNUNET_CONSENSUS_Element
48{
49 /**
50 * The actual data of the element.
51 */
52 const void *data;
53
54 /**
55 * Size of the element's data.
56 */
57 uint16_t size;
58
59 /**
60 * Application specific element type
61 */
62 uint16_t type;
63};
64 43
65 44
66/** 45/**
@@ -73,7 +52,7 @@ struct GNUNET_CONSENSUS_Element
73 * @param element new element, NULL on error 52 * @param element new element, NULL on error
74 */ 53 */
75typedef void (*GNUNET_CONSENSUS_ElementCallback) (void *cls, 54typedef void (*GNUNET_CONSENSUS_ElementCallback) (void *cls,
76 const struct GNUNET_CONSENSUS_Element *element); 55 const struct GNUNET_SET_Element *element);
77 56
78 57
79 58
@@ -138,7 +117,7 @@ typedef void (*GNUNET_CONSENSUS_InsertDoneCallback) (void *cls,
138 */ 117 */
139void 118void
140GNUNET_CONSENSUS_insert (struct GNUNET_CONSENSUS_Handle *consensus, 119GNUNET_CONSENSUS_insert (struct GNUNET_CONSENSUS_Handle *consensus,
141 const struct GNUNET_CONSENSUS_Element *element, 120 const struct GNUNET_SET_Element *element,
142 GNUNET_CONSENSUS_InsertDoneCallback idc, 121 GNUNET_CONSENSUS_InsertDoneCallback idc,
143 void *idc_cls); 122 void *idc_cls);
144 123