diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-04-30 00:04:25 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-04-30 00:04:25 +0000 |
commit | 85f905805b3f5e72d06b9138b1e63db77b20cb11 (patch) | |
tree | 44abae43bdc449b3395f7015bb6b7b930cc39a66 /src/include/gnunet_set_service.h | |
parent | 3042006a4c995ffaa8389e7c4106ada1fed69fed (diff) | |
download | gnunet-85f905805b3f5e72d06b9138b1e63db77b20cb11.tar.gz gnunet-85f905805b3f5e72d06b9138b1e63db77b20cb11.zip |
implemented most parts of the set service
Diffstat (limited to 'src/include/gnunet_set_service.h')
-rw-r--r-- | src/include/gnunet_set_service.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/include/gnunet_set_service.h b/src/include/gnunet_set_service.h index 00101d7a6..b76882319 100644 --- a/src/include/gnunet_set_service.h +++ b/src/include/gnunet_set_service.h | |||
@@ -91,9 +91,10 @@ enum GNUNET_SET_Status | |||
91 | */ | 91 | */ |
92 | GNUNET_SET_STATUS_TIMEOUT, | 92 | GNUNET_SET_STATUS_TIMEOUT, |
93 | /** | 93 | /** |
94 | * The other peer refused to to the operation with us | 94 | * The other peer refused to to the operation with us, |
95 | * or something went wrong. | ||
95 | */ | 96 | */ |
96 | GNUNET_SET_STATUS_REFUSED, | 97 | GNUNET_SET_STATUS_FAILURE, |
97 | /** | 98 | /** |
98 | * Success, all elements have been sent. | 99 | * Success, all elements have been sent. |
99 | */ | 100 | */ |
@@ -258,6 +259,8 @@ GNUNET_SET_destroy (struct GNUNET_SET_Handle *set); | |||
258 | * makes it harder for an attacker to exploit this | 259 | * makes it harder for an attacker to exploit this |
259 | * @param timeout result_cb will be called with GNUNET_SET_STATUS_TIMEOUT | 260 | * @param timeout result_cb will be called with GNUNET_SET_STATUS_TIMEOUT |
260 | * if the operation is not done after the specified time | 261 | * if the operation is not done after the specified time |
262 | * @param result_mode specified how results will be returned, | ||
263 | * see 'GNUNET_SET_ResultMode'. | ||
261 | * @param result_cb called on error or success | 264 | * @param result_cb called on error or success |
262 | * @param result_cls closure for result_cb | 265 | * @param result_cls closure for result_cb |
263 | * @return a handle to cancel the operation | 266 | * @return a handle to cancel the operation |
@@ -304,14 +307,18 @@ void | |||
304 | GNUNET_SET_listen_cancel (struct GNUNET_SET_ListenHandle *lh); | 307 | GNUNET_SET_listen_cancel (struct GNUNET_SET_ListenHandle *lh); |
305 | 308 | ||
306 | 309 | ||
310 | |||
307 | /** | 311 | /** |
308 | * Accept a request we got via GNUNET_SET_listen | 312 | * Accept a request we got via GNUNET_SET_listen. |
309 | * | 313 | * |
310 | * @param request request to accept | 314 | * @param request request to accept |
311 | * @param set set used for the requested operation | 315 | * @param set set used for the requested operation |
312 | * @param timeout timeout for the set operation | 316 | * @param timeout timeout for the set operation |
317 | * @param result_mode specified how results will be returned, | ||
318 | * see 'GNUNET_SET_ResultMode'. | ||
313 | * @param result_cb callback for the results | 319 | * @param result_cb callback for the results |
314 | * @param cls closure for result_cb | 320 | * @param result_cls closure for result_cb |
321 | * @return a handle to cancel the operation | ||
315 | */ | 322 | */ |
316 | struct GNUNET_SET_OperationHandle * | 323 | struct GNUNET_SET_OperationHandle * |
317 | GNUNET_SET_accept (struct GNUNET_SET_Request *request, | 324 | GNUNET_SET_accept (struct GNUNET_SET_Request *request, |
@@ -325,7 +332,7 @@ GNUNET_SET_accept (struct GNUNET_SET_Request *request, | |||
325 | /** | 332 | /** |
326 | * Cancel the given set operation. | 333 | * Cancel the given set operation. |
327 | * | 334 | * |
328 | * @param op set operation to cancel | 335 | * @param oh set operation to cancel |
329 | */ | 336 | */ |
330 | void | 337 | void |
331 | GNUNET_SET_operation_cancel (struct GNUNET_SET_OperationHandle *oh); | 338 | GNUNET_SET_operation_cancel (struct GNUNET_SET_OperationHandle *oh); |