diff options
Diffstat (limited to 'src/set/gnunet-service-set.h')
-rw-r--r-- | src/set/gnunet-service-set.h | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/set/gnunet-service-set.h b/src/set/gnunet-service-set.h index 834f78780..448ed9478 100644 --- a/src/set/gnunet-service-set.h +++ b/src/set/gnunet-service-set.h | |||
@@ -165,13 +165,27 @@ typedef void | |||
165 | 165 | ||
166 | 166 | ||
167 | /** | 167 | /** |
168 | * Signature of functions that implement the creation of set operations | 168 | * Signature of functions that implement accepting a set operation. |
169 | * (currently "evaluate" and "accept"). | ||
170 | * | 169 | * |
171 | * @param op operation that is created, should be initialized by the implementation | 170 | * @param op operation that is created by accepting the operation, |
171 | * should be initialized by the implementation | ||
172 | */ | 172 | */ |
173 | typedef void | 173 | typedef void |
174 | (*OpCreateImpl) (struct Operation *op); | 174 | (*OpAcceptImpl) (struct Operation *op); |
175 | |||
176 | |||
177 | /** | ||
178 | * Signature of functions that implement starting the evaluation of | ||
179 | * set operations. | ||
180 | * | ||
181 | * @param op operation that is created, should be initialized to | ||
182 | * begin the evaluation | ||
183 | * @param opaque_context message to be transmitted to the listener | ||
184 | * to convince him to accept, may be NULL | ||
185 | */ | ||
186 | typedef void | ||
187 | (*OpEvaluateImpl) (struct Operation *op, | ||
188 | const struct GNUNET_MessageHeader *opaque_context); | ||
175 | 189 | ||
176 | 190 | ||
177 | /** | 191 | /** |
@@ -221,12 +235,12 @@ struct SetVT | |||
221 | /** | 235 | /** |
222 | * Callback for accepting a set operation request | 236 | * Callback for accepting a set operation request |
223 | */ | 237 | */ |
224 | OpCreateImpl accept; | 238 | OpAcceptImpl accept; |
225 | 239 | ||
226 | /** | 240 | /** |
227 | * Callback for starting evaluation with a remote peer. | 241 | * Callback for starting evaluation with a remote peer. |
228 | */ | 242 | */ |
229 | OpCreateImpl evaluate; | 243 | OpEvaluateImpl evaluate; |
230 | 244 | ||
231 | /** | 245 | /** |
232 | * Callback for destruction of the set state. | 246 | * Callback for destruction of the set state. |