aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_operations.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed/testbed_api_operations.h')
-rw-r--r--src/testbed/testbed_api_operations.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h
index 346fe5b75..10a91fb21 100644
--- a/src/testbed/testbed_api_operations.h
+++ b/src/testbed/testbed_api_operations.h
@@ -175,5 +175,29 @@ void
175GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *op); 175GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *op);
176 176
177 177
178/**
179 * Marks an active operation as inactive - the operation will be kept in a
180 * ready-to-be-released state and continues to hold resources until another
181 * operation contents for them.
182 *
183 * @param op the operation to be marked as inactive. The operation start
184 * callback should have been called before for this operation to mark
185 * it as inactive.
186 */
187void
188GNUNET_TESTBED_operation_inactivate_ (struct GNUNET_TESTBED_Operation *op);
189
190
191/**
192 * Marks and inactive operation as active. This fuction should be called to
193 * ensure that the oprelease callback will not be called until it is either
194 * marked as inactive or released.
195 *
196 * @param op the operation to be marked as active
197 */
198void
199GNUNET_TESTBED_operation_activate_ (struct GNUNET_TESTBED_Operation *op);
200
201
178#endif 202#endif
179/* end of testbed_api_operations.h */ 203/* end of testbed_api_operations.h */