diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-24 15:50:48 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-24 18:10:11 +0100 |
commit | 592b43fdf3f3572892f4095808daf22010469d0b (patch) | |
tree | 74f01c52aa3a2727388f81d0b4a3fc86a08af8a9 /src/set/set.h | |
parent | 398c70fd7434f3f7891175be96b73191e49a0afe (diff) | |
download | gnunet-592b43fdf3f3572892f4095808daf22010469d0b.tar.gz gnunet-592b43fdf3f3572892f4095808daf22010469d0b.zip |
add option parsing
Diffstat (limited to 'src/set/set.h')
-rw-r--r-- | src/set/set.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/set/set.h b/src/set/set.h index f31216cb8..207f098bc 100644 --- a/src/set/set.h +++ b/src/set/set.h | |||
@@ -102,6 +102,30 @@ struct GNUNET_SET_AcceptMessage | |||
102 | * See `enum GNUNET_SET_ResultMode`. | 102 | * See `enum GNUNET_SET_ResultMode`. |
103 | */ | 103 | */ |
104 | uint32_t result_mode GNUNET_PACKED; | 104 | uint32_t result_mode GNUNET_PACKED; |
105 | |||
106 | /** | ||
107 | * Always use delta operation instead of sending full sets, | ||
108 | * even it it's less efficient. | ||
109 | */ | ||
110 | uint8_t force_delta; | ||
111 | |||
112 | /** | ||
113 | * Always send full sets, even if delta operations would | ||
114 | * be more efficient. | ||
115 | */ | ||
116 | uint8_t force_full; | ||
117 | |||
118 | /** | ||
119 | * #GNUNET_YES to fail operations where Byzantine faults | ||
120 | * are suspected | ||
121 | */ | ||
122 | uint8_t byzantine; | ||
123 | |||
124 | /** | ||
125 | * Lower bound for the set size, used only when | ||
126 | * byzantine mode is enabled. | ||
127 | */ | ||
128 | uint8_t byzantine_lower_bound; | ||
105 | }; | 129 | }; |
106 | 130 | ||
107 | 131 | ||
@@ -184,6 +208,30 @@ struct GNUNET_SET_EvaluateMessage | |||
184 | */ | 208 | */ |
185 | uint32_t request_id GNUNET_PACKED; | 209 | uint32_t request_id GNUNET_PACKED; |
186 | 210 | ||
211 | /** | ||
212 | * Always use delta operation instead of sending full sets, | ||
213 | * even it it's less efficient. | ||
214 | */ | ||
215 | uint8_t force_delta; | ||
216 | |||
217 | /** | ||
218 | * Always send full sets, even if delta operations would | ||
219 | * be more efficient. | ||
220 | */ | ||
221 | uint8_t force_full; | ||
222 | |||
223 | /** | ||
224 | * #GNUNET_YES to fail operations where Byzantine faults | ||
225 | * are suspected | ||
226 | */ | ||
227 | uint8_t byzantine; | ||
228 | |||
229 | /** | ||
230 | * Lower bound for the set size, used only when | ||
231 | * byzantine mode is enabled. | ||
232 | */ | ||
233 | uint8_t byzantine_lower_bound; | ||
234 | |||
187 | /* rest: context message, that is, application-specific | 235 | /* rest: context message, that is, application-specific |
188 | message to convince listener to pick up */ | 236 | message to convince listener to pick up */ |
189 | }; | 237 | }; |