aboutsummaryrefslogtreecommitdiff
path: root/src/set/set.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-04-24 11:48:31 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-04-24 11:48:31 +0000
commit9113520987972a798a23d1d21544d8ec4daa078c (patch)
tree178a1bca3b9083d554de20227cd0a8f1190c958c /src/set/set.h
parent6a9bc072e64367297498b93cd6d975995203d2e9 (diff)
downloadgnunet-9113520987972a798a23d1d21544d8ec4daa078c.tar.gz
gnunet-9113520987972a798a23d1d21544d8ec4daa078c.zip
started implementing union operation for set
Diffstat (limited to 'src/set/set.h')
-rw-r--r--src/set/set.h33
1 files changed, 24 insertions, 9 deletions
diff --git a/src/set/set.h b/src/set/set.h
index ef11e5abc..10e607982 100644
--- a/src/set/set.h
+++ b/src/set/set.h
@@ -20,12 +20,13 @@
20 20
21/** 21/**
22 * @author Florian Dold 22 * @author Florian Dold
23 * @file consensus/consensus.h 23 * @file set/set.h
24 * @brief 24 * @brief messages used for the set api
25 */ 25 */
26#ifndef SET_H 26#ifndef SET_H
27#define SET_H 27#define SET_H
28 28
29#include "platform.h"
29#include "gnunet_common.h" 30#include "gnunet_common.h"
30 31
31 32
@@ -68,12 +69,6 @@ struct ListenMessage
68 * Operation type, values of enum GNUNET_SET_OperationType 69 * Operation type, values of enum GNUNET_SET_OperationType
69 */ 70 */
70 uint16_t operation GNUNET_PACKED; 71 uint16_t operation GNUNET_PACKED;
71
72 /**
73 * Operation type, values of enum GNUNET_SET_OperationType
74 */
75 uint16_t op GNUNET_PACKED;
76
77}; 72};
78 73
79 74
@@ -88,6 +83,12 @@ struct AcceptMessage
88 * request id of the request we want to accept 83 * request id of the request we want to accept
89 */ 84 */
90 uint32_t request_id GNUNET_PACKED; 85 uint32_t request_id GNUNET_PACKED;
86
87 /**
88 * Zero if the client has rejected the request,
89 * non-zero if it has accepted it
90 */
91 uint32_t accepted GNUNET_PACKED;
91}; 92};
92 93
93 94
@@ -119,8 +120,14 @@ struct EvaluateMessage
119 */ 120 */
120 struct GNUNET_MessageHeader header; 121 struct GNUNET_MessageHeader header;
121 122
122 struct GNUNET_PeerIdentity other_peer; 123 /**
124 * Peer to evaluate the operation with
125 */
126 struct GNUNET_PeerIdentity peer;
123 127
128 /**
129 * Application id
130 */
124 struct GNUNET_HashCode app_id; 131 struct GNUNET_HashCode app_id;
125 132
126 /** 133 /**
@@ -144,8 +151,15 @@ struct ResultMessage
144 */ 151 */
145 uint32_t request_id GNUNET_PACKED; 152 uint32_t request_id GNUNET_PACKED;
146 153
154 /**
155 * Was the evaluation successful?
156 */
147 uint16_t result_status GNUNET_PACKED; 157 uint16_t result_status GNUNET_PACKED;
148 158
159 /**
160 * Type of the element attachted to the message,
161 * if any.
162 */
149 uint16_t element_type GNUNET_PACKED; 163 uint16_t element_type GNUNET_PACKED;
150 164
151 /* rest: the actual element */ 165 /* rest: the actual element */
@@ -179,6 +193,7 @@ struct CancelMessage
179 uint32_t request_id GNUNET_PACKED; 193 uint32_t request_id GNUNET_PACKED;
180}; 194};
181 195
196
182GNUNET_NETWORK_STRUCT_END 197GNUNET_NETWORK_STRUCT_END
183 198
184#endif 199#endif