2 This file is part of GNUnet
3 (C) 2008--2012 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file testing/new_testing_api_operations.c
23 * @brief functions to manage operation queues
24 * @author Christian Grothoff
27 #include "new_testing_api_operations.h"
31 * Opaque handle to an abstract operation to be executed by the testing framework.
33 struct GNUNET_TESTBED_Operation
41 * Cancel a pending operation. Releases all resources
42 * of the operation and will ensure that no event
43 * is generated for the operation. Does NOT guarantee
44 * that the operation will be fully undone (or that
45 * nothing ever happened).
47 * @param operation operation to cancel
50 GNUNET_TESTBED_operation_cancel (struct GNUNET_TESTBED_Operation *operation)
58 * Signal that the information from an operation has been fully
59 * processed. This function MUST be called for each event
60 * of type 'operation_finished' to fully remove the operation
61 * from the operation queue. After calling this function, the
62 * 'op_result' becomes invalid (!).
64 * @param operation operation to signal completion for
67 GNUNET_TESTBED_operation_done (struct GNUNET_TESTBED_Operation *operation)
74 /* end of new_testing_api_operations.c */