aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-26 12:58:46 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-26 12:58:46 +0000
commit82bc20a8bcbfb269da4dd54476382c924497e7ec (patch)
tree6c64f597dcbecbf53118d6710bc02ec51da4a4b7 /src/include/gnunet_testbed_service.h
parent0c1b1c5380cfff0a8e0e3adae4df2ee048a5fe88 (diff)
downloadgnunet-82bc20a8bcbfb269da4dd54476382c924497e7ec.tar.gz
gnunet-82bc20a8bcbfb269da4dd54476382c924497e7ec.zip
removed GNUNET_TESTBED_operation_cancel
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index f4c02fbad..c2c6812f4 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -1188,26 +1188,25 @@ GNUNET_TESTBED_service_connect (void *op_cls,
1188 1188
1189 1189
1190/** 1190/**
1191 * Cancel a pending operation. Releases all resources 1191 * This function is used to signal that the event information (struct
1192 * of the operation and will ensure that no event 1192 * GNUNET_TESTBED_EventInformation) from an operation has been fully processed
1193 * is generated for the operation. Does NOT guarantee 1193 * i.e. if the event callback is ever called for this operation. If the event
1194 * that the operation will be fully undone (or that 1194 * callback for this operation has not yet been called, calling this function
1195 * nothing ever happened). 1195 * cancels the operation, frees its resources and ensures the no event is
1196 * generated with respect to this operation. Note that however cancelling an
1197 * operation does NOT guarantee that the operation will be fully undone (or that
1198 * nothing ever happened).
1196 * 1199 *
1197 * @param operation operation to cancel 1200 * This function MUST be called for every operation to fully remove the
1198 */ 1201 * operation from the operation queue. After calling this function, if
1199void 1202 * operation is completed and its event information is of type
1200GNUNET_TESTBED_operation_cancel (struct GNUNET_TESTBED_Operation *operation); 1203 * GNUNET_TESTBED_ET_OPERATION_FINISHED, the 'op_result' becomes invalid (!).
1201 1204
1202 1205 * If the operation is generated from GNUNET_TESTBED_service_connect() then
1203/** 1206 * calling this function on such as operation calls the disconnect adapter if
1204 * Signal that the information from an operation has been fully 1207 * the connect adapter was ever called.
1205 * processed. This function MUST be called for each event
1206 * of type 'operation_finished' to fully remove the operation
1207 * from the operation queue. After calling this function, the
1208 * 'op_result' becomes invalid (!).
1209 * 1208 *
1210 * @param operation operation to signal completion for 1209 * @param operation operation to signal completion or cancellation
1211 */ 1210 */
1212void 1211void
1213GNUNET_TESTBED_operation_done (struct GNUNET_TESTBED_Operation *operation); 1212GNUNET_TESTBED_operation_done (struct GNUNET_TESTBED_Operation *operation);