aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-27 11:56:28 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-27 11:56:28 +0000
commitce9b32618b6ee488352ef0eb506c744868145f82 (patch)
treedde0f1de9dfec7d3814a29cfb5b252a79a64d726 /src/set/gnunet-service-set.h
parent2b0e3f9ba871095d003fc078eee75b5eda6fc8b8 (diff)
downloadgnunet-ce9b32618b6ee488352ef0eb506c744868145f82.tar.gz
gnunet-ce9b32618b6ee488352ef0eb506c744868145f82.zip
clean up internal set API, avoid copying context message needlessly
Diffstat (limited to 'src/set/gnunet-service-set.h')
-rw-r--r--src/set/gnunet-service-set.h26
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 */
173typedef void 173typedef 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 */
186typedef 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.