diff options
Diffstat (limited to 'src/testbed/testbed_api_operations.h')
-rw-r--r-- | src/testbed/testbed_api_operations.h | 41 |
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 | */ |
43 | enum OperationQueueType | 43 | enum 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 | */ |
67 | struct OperationQueue * | 66 | struct OperationQueue * |
68 | GNUNET_TESTBED_operation_queue_create_ (enum OperationQueueType type, | 67 | GNUNET_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 | */ |
78 | void | 77 | void |
79 | GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); | 78 | GNUNET_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 | */ |
89 | int | 88 | int |
90 | GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *queue); | 89 | GNUNET_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 | */ |
101 | void | 100 | void |
102 | GNUNET_TESTBED_operation_queue_reset_max_active_ (struct OperationQueue *queue, | 101 | GNUNET_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 | */ |
117 | void | 116 | void |
118 | GNUNET_TESTBED_operation_queue_insert2_ (struct OperationQueue *queue, | 117 | GNUNET_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 | */ |
132 | void | 131 | void |
133 | GNUNET_TESTBED_operation_queue_insert_ (struct OperationQueue *queue, | 132 | GNUNET_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 | */ |
146 | void | 145 | void |
147 | GNUNET_TESTBED_operation_begin_wait_ (struct GNUNET_TESTBED_Operation *op); | 146 | GNUNET_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 | */ |
184 | struct GNUNET_TESTBED_Operation * | 183 | struct GNUNET_TESTBED_Operation * |
185 | GNUNET_TESTBED_operation_create_ (void *cls, OperationStart start, | 184 | GNUNET_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 | */ |
195 | void | 194 | void |
196 | GNUNET_TESTBED_operation_release_ (struct GNUNET_TESTBED_Operation *op); | 195 | GNUNET_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 | */ |
208 | void | 207 | void |
209 | GNUNET_TESTBED_operation_inactivate_ (struct GNUNET_TESTBED_Operation *op); | 208 | GNUNET_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 | */ |
219 | void | 218 | void |
220 | GNUNET_TESTBED_operation_activate_ (struct GNUNET_TESTBED_Operation *op); | 219 | GNUNET_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 | */ |
228 | void | 227 | void |
229 | GNUNET_TESTBED_operation_mark_failed (struct GNUNET_TESTBED_Operation *op); | 228 | GNUNET_TESTBED_operation_mark_failed(struct GNUNET_TESTBED_Operation *op); |
230 | 229 | ||
231 | 230 | ||
232 | #endif | 231 | #endif |