summaryrefslogtreecommitdiff
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.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h
index 28d64e8bb..fec518077 100644
--- a/src/testbed/testbed_api_operations.h
+++ b/src/testbed/testbed_api_operations.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -40,8 +40,7 @@ struct OperationQueue;
40/** 40/**
41 * The type of operation queue 41 * The type of operation queue
42 */ 42 */
43enum OperationQueueType 43enum OperationQueueType {
44{
45 /** 44 /**
46 * Operation queue which permits a fixed maximum number of operations to be 45 * Operation queue which permits a fixed maximum number of operations to be
47 * active at any time 46 * active at any time
@@ -65,8 +64,8 @@ enum OperationQueueType
65 * @return handle to the queue 64 * @return handle to the queue
66 */ 65 */
67struct OperationQueue * 66struct OperationQueue *
68GNUNET_TESTBED_operation_queue_create_ (enum OperationQueueType type, 67GNUNET_TESTBED_operation_queue_create_(enum OperationQueueType type,
69 unsigned int max_active); 68 unsigned int max_active);
70 69
71 70
72/** 71/**
@@ -76,7 +75,7 @@ GNUNET_TESTBED_operation_queue_create_ (enum OperationQueueType type,
76 * @param queue queue to destroy 75 * @param queue queue to destroy
77 */ 76 */
78void 77void
79GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); 78GNUNET_TESTBED_operation_queue_destroy_(struct OperationQueue *queue);
80 79
81 80
82/** 81/**
@@ -87,7 +86,7 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue);
87 * is not empty) 86 * is not empty)
88 */ 87 */
89int 88int
90GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *queue); 89GNUNET_TESTBED_operation_queue_destroy_empty_(struct OperationQueue *queue);
91 90
92 91
93/** 92/**
@@ -99,8 +98,8 @@ GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *queue);
99 * @param max_active the new maximum number of active operations 98 * @param max_active the new maximum number of active operations
100 */ 99 */
101void 100void
102GNUNET_TESTBED_operation_queue_reset_max_active_ (struct OperationQueue *queue, 101GNUNET_TESTBED_operation_queue_reset_max_active_(struct OperationQueue *queue,
103 unsigned int max_active); 102 unsigned int max_active);
104 103
105 104
106/** 105/**
@@ -115,9 +114,9 @@ GNUNET_TESTBED_operation_queue_reset_max_active_ (struct OperationQueue *queue,
115 * operation. Should be greater than 0. 114 * operation. Should be greater than 0.
116 */ 115 */
117void 116void
118GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue, 117GNUNET_TESTBED_operation_queue_insert2_(struct OperationQueue *queue,
119 struct GNUNET_TESTBED_Operation *op, 118 struct GNUNET_TESTBED_Operation *op,
120 unsigned int nres); 119 unsigned int nres);
121 120
122 121
123/** 122/**
@@ -130,8 +129,8 @@ GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue,
130 * @param op operation to add to the queue 129 * @param op operation to add to the queue
131 */ 130 */
132void 131void
133GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, 132GNUNET_TESTBED_operation_queue_insert_(struct OperationQueue *queue,
134 struct GNUNET_TESTBED_Operation *op); 133 struct GNUNET_TESTBED_Operation *op);
135 134
136 135
137/** 136/**
@@ -144,7 +143,7 @@ GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue,
144 * @param op the operation to marks as waiting 143 * @param op the operation to marks as waiting
145 */ 144 */
146void 145void
147GNUNET_TESTBED_operation_begin_wait_ (struct GNUNET_TESTBED_Operation *op); 146GNUNET_TESTBED_operation_begin_wait_(struct GNUNET_TESTBED_Operation *op);
148 147
149 148
150/** 149/**
@@ -182,8 +181,8 @@ typedef void (*OperationRelease) (void *cls);
182 * @return handle to the operation 181 * @return handle to the operation
183 */ 182 */
184struct GNUNET_TESTBED_Operation * 183struct GNUNET_TESTBED_Operation *
185GNUNET_TESTBED_operation_create_ (void *cls, OperationStart start, 184GNUNET_TESTBED_operation_create_(void *cls, OperationStart start,
186 OperationRelease release); 185 OperationRelease release);
187 186
188 187
189/** 188/**
@@ -193,7 +192,7 @@ GNUNET_TESTBED_operation_create_ (void *cls, OperationStart start,
193 * @param op operation that finished 192 * @param op operation that finished
194 */ 193 */
195void 194void
196GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *op); 195GNUNET_TESTBED_operation_release_(struct GNUNET_TESTBED_Operation *op);
197 196
198 197
199/** 198/**
@@ -206,7 +205,7 @@ GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *op);
206 * it as inactive. 205 * it as inactive.
207 */ 206 */
208void 207void
209GNUNET_TESTBED_operation_inactivate_ (struct GNUNET_TESTBED_Operation *op); 208GNUNET_TESTBED_operation_inactivate_(struct GNUNET_TESTBED_Operation *op);
210 209
211 210
212/** 211/**
@@ -217,7 +216,7 @@ GNUNET_TESTBED_operation_inactivate_ (struct GNUNET_TESTBED_Operation *op);
217 * @param op the operation to be marked as active 216 * @param op the operation to be marked as active
218 */ 217 */
219void 218void
220GNUNET_TESTBED_operation_activate_ (struct GNUNET_TESTBED_Operation *op); 219GNUNET_TESTBED_operation_activate_(struct GNUNET_TESTBED_Operation *op);
221 220
222 221
223/** 222/**
@@ -226,7 +225,7 @@ GNUNET_TESTBED_operation_activate_ (struct GNUNET_TESTBED_Operation *op);
226 * @param op the operation to be marked as failed 225 * @param op the operation to be marked as failed
227 */ 226 */
228void 227void
229GNUNET_TESTBED_operation_mark_failed (struct GNUNET_TESTBED_Operation *op); 228GNUNET_TESTBED_operation_mark_failed(struct GNUNET_TESTBED_Operation *op);
230 229
231 230
232#endif 231#endif