diff options
Diffstat (limited to 'src/testbed/testbed_api_operations.h')
-rw-r--r-- | src/testbed/testbed_api_operations.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h index 08d6df2c0..519c68139 100644 --- a/src/testbed/testbed_api_operations.h +++ b/src/testbed/testbed_api_operations.h | |||
@@ -62,9 +62,9 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); | |||
62 | * Add an operation to a queue. An operation can be in multiple | 62 | * Add an operation to a queue. An operation can be in multiple |
63 | * queues at once. Once all queues permit the operation to become | 63 | * queues at once. Once all queues permit the operation to become |
64 | * active, the operation will be activated. The actual activation | 64 | * active, the operation will be activated. The actual activation |
65 | * will occur in a separate task (thus allowing multiple queue | 65 | * will occur in a separate task (thus allowing multiple queue |
66 | * insertions to be made without having the first one instantly | 66 | * insertions to be made without having the first one instantly |
67 | * trigger the operation if the first queue has sufficient | 67 | * trigger the operation if the first queue has sufficient |
68 | * resources). | 68 | * resources). |
69 | * | 69 | * |
70 | * @param queue queue to add the operation to | 70 | * @param queue queue to add the operation to |
@@ -72,7 +72,8 @@ GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); | |||
72 | */ | 72 | */ |
73 | void | 73 | void |
74 | GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, | 74 | GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, |
75 | struct GNUNET_TESTBED_Operation *operation); | 75 | struct GNUNET_TESTBED_Operation |
76 | *operation); | ||
76 | 77 | ||
77 | 78 | ||
78 | /** | 79 | /** |
@@ -86,7 +87,8 @@ GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, | |||
86 | */ | 87 | */ |
87 | void | 88 | void |
88 | GNUNET_TESTBED_operation_queue_remove_ (struct OperationQueue *queue, | 89 | GNUNET_TESTBED_operation_queue_remove_ (struct OperationQueue *queue, |
89 | struct GNUNET_TESTBED_Operation *operation); | 90 | struct GNUNET_TESTBED_Operation |
91 | *operation); | ||
90 | 92 | ||
91 | 93 | ||
92 | 94 | ||
@@ -97,7 +99,7 @@ GNUNET_TESTBED_operation_queue_remove_ (struct OperationQueue *queue, | |||
97 | * | 99 | * |
98 | * @param cls the closure from GNUNET_TESTBED_operation_create_() | 100 | * @param cls the closure from GNUNET_TESTBED_operation_create_() |
99 | */ | 101 | */ |
100 | typedef void (*OperationStart)(void *cls); | 102 | typedef void (*OperationStart) (void *cls); |
101 | 103 | ||
102 | 104 | ||
103 | /** | 105 | /** |
@@ -113,7 +115,7 @@ typedef void (*OperationStart)(void *cls); | |||
113 | * | 115 | * |
114 | * @param cls the closure from GNUNET_TESTBED_operation_create_() | 116 | * @param cls the closure from GNUNET_TESTBED_operation_create_() |
115 | */ | 117 | */ |
116 | typedef void (*OperationRelease)(void *cls); | 118 | typedef void (*OperationRelease) (void *cls); |
117 | 119 | ||
118 | 120 | ||
119 | /** | 121 | /** |
@@ -125,9 +127,8 @@ typedef void (*OperationRelease)(void *cls); | |||
125 | * @return handle to the operation | 127 | * @return handle to the operation |
126 | */ | 128 | */ |
127 | struct GNUNET_TESTBED_Operation * | 129 | struct GNUNET_TESTBED_Operation * |
128 | GNUNET_TESTBED_operation_create_ (void *cls, | 130 | GNUNET_TESTBED_operation_create_ (void *cls, OperationStart start, |
129 | OperationStart start, | 131 | OperationRelease release); |
130 | OperationRelease release); | ||
131 | 132 | ||
132 | 133 | ||
133 | /** | 134 | /** |