diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-31 10:36:28 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-31 10:36:28 +0000 |
commit | a94a1861d123fe850d2ab5ae74cbb59b132a15ea (patch) | |
tree | a16d2518067d13f2463e83cd9dc66bdd6b733621 /src/testbed/testbed_api.h | |
parent | d0c55c3ee57913977b1497ea0e6f20573820b206 (diff) | |
download | gnunet-a94a1861d123fe850d2ab5ae74cbb59b132a15ea.tar.gz gnunet-a94a1861d123fe850d2ab5ae74cbb59b132a15ea.zip |
adhering to indentation standard
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r-- | src/testbed/testbed_api.h | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h index 7f7ab6c94..06ab6d504 100644 --- a/src/testbed/testbed_api.h +++ b/src/testbed/testbed_api.h | |||
@@ -34,48 +34,48 @@ | |||
34 | * Enumeration of operations | 34 | * Enumeration of operations |
35 | */ | 35 | */ |
36 | enum OperationType | 36 | enum OperationType |
37 | { | 37 | { |
38 | /** | 38 | /** |
39 | * Peer create operation | 39 | * Peer create operation |
40 | */ | 40 | */ |
41 | OP_PEER_CREATE, | 41 | OP_PEER_CREATE, |
42 | 42 | ||
43 | /** | 43 | /** |
44 | * Peer start operation | 44 | * Peer start operation |
45 | */ | 45 | */ |
46 | OP_PEER_START, | 46 | OP_PEER_START, |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Peer stop operation | 49 | * Peer stop operation |
50 | */ | 50 | */ |
51 | OP_PEER_STOP, | 51 | OP_PEER_STOP, |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Peer destroy operation | 54 | * Peer destroy operation |
55 | */ | 55 | */ |
56 | OP_PEER_DESTROY, | 56 | OP_PEER_DESTROY, |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * Get peer information operation | 59 | * Get peer information operation |
60 | */ | 60 | */ |
61 | OP_PEER_INFO, | 61 | OP_PEER_INFO, |
62 | 62 | ||
63 | /** | 63 | /** |
64 | * Overlay connection operation | 64 | * Overlay connection operation |
65 | */ | 65 | */ |
66 | OP_OVERLAY_CONNECT, | 66 | OP_OVERLAY_CONNECT, |
67 | 67 | ||
68 | /** | 68 | /** |
69 | * Forwarded operation | 69 | * Forwarded operation |
70 | */ | 70 | */ |
71 | OP_FORWARDED, | 71 | OP_FORWARDED, |
72 | 72 | ||
73 | /** | 73 | /** |
74 | * Link controllers operation | 74 | * Link controllers operation |
75 | */ | 75 | */ |
76 | OP_LINK_CONTROLLERS, | 76 | OP_LINK_CONTROLLERS, |
77 | 77 | ||
78 | }; | 78 | }; |
79 | 79 | ||
80 | 80 | ||
81 | /** | 81 | /** |
@@ -130,25 +130,25 @@ struct ControllerLink; | |||
130 | * Enumeration of states of OperationContext | 130 | * Enumeration of states of OperationContext |
131 | */ | 131 | */ |
132 | enum OperationContextState | 132 | enum OperationContextState |
133 | { | 133 | { |
134 | /** | 134 | /** |
135 | * The initial state where the associated operation has just been created | 135 | * The initial state where the associated operation has just been created |
136 | * and is waiting in the operation queues to be started | 136 | * and is waiting in the operation queues to be started |
137 | */ | 137 | */ |
138 | OPC_STATE_INIT = 0, | 138 | OPC_STATE_INIT = 0, |
139 | 139 | ||
140 | /** | 140 | /** |
141 | * The operation has been started. It may occupy some resources which are to | 141 | * The operation has been started. It may occupy some resources which are to |
142 | * be freed if cancelled. | 142 | * be freed if cancelled. |
143 | */ | 143 | */ |
144 | OPC_STATE_STARTED, | 144 | OPC_STATE_STARTED, |
145 | 145 | ||
146 | /** | 146 | /** |
147 | * The operation has finished. The end results of this operation may occupy | 147 | * The operation has finished. The end results of this operation may occupy |
148 | * some resources which are to be freed by operation_done | 148 | * some resources which are to be freed by operation_done |
149 | */ | 149 | */ |
150 | OPC_STATE_FINISHED | 150 | OPC_STATE_FINISHED |
151 | }; | 151 | }; |
152 | 152 | ||
153 | 153 | ||
154 | /** | 154 | /** |
@@ -234,7 +234,7 @@ struct GNUNET_TESTBED_Controller | |||
234 | * The client connection handle to the controller service | 234 | * The client connection handle to the controller service |
235 | */ | 235 | */ |
236 | struct GNUNET_CLIENT_Connection *client; | 236 | struct GNUNET_CLIENT_Connection *client; |
237 | 237 | ||
238 | /** | 238 | /** |
239 | * The head of the message queue | 239 | * The head of the message queue |
240 | */ | 240 | */ |
@@ -262,7 +262,7 @@ struct GNUNET_TESTBED_Controller | |||
262 | 262 | ||
263 | /** | 263 | /** |
264 | * The host registration handle; NULL if no current registration requests are | 264 | * The host registration handle; NULL if no current registration requests are |
265 | * present | 265 | * present |
266 | */ | 266 | */ |
267 | struct GNUNET_TESTBED_HostRegistrationHandle *rh; | 267 | struct GNUNET_TESTBED_HostRegistrationHandle *rh; |
268 | 268 | ||
@@ -290,7 +290,7 @@ struct GNUNET_TESTBED_Controller | |||
290 | * The operation id counter. use current value and increment | 290 | * The operation id counter. use current value and increment |
291 | */ | 291 | */ |
292 | uint64_t operation_counter; | 292 | uint64_t operation_counter; |
293 | 293 | ||
294 | /** | 294 | /** |
295 | * The controller event mask | 295 | * The controller event mask |
296 | */ | 296 | */ |
@@ -316,7 +316,7 @@ struct GNUNET_TESTBED_Controller | |||
316 | */ | 316 | */ |
317 | void | 317 | void |
318 | GNUNET_TESTBED_queue_message_ (struct GNUNET_TESTBED_Controller *controller, | 318 | GNUNET_TESTBED_queue_message_ (struct GNUNET_TESTBED_Controller *controller, |
319 | struct GNUNET_MessageHeader *msg); | 319 | struct GNUNET_MessageHeader *msg); |
320 | 320 | ||
321 | 321 | ||
322 | /** | 322 | /** |
@@ -325,12 +325,12 @@ GNUNET_TESTBED_queue_message_ (struct GNUNET_TESTBED_Controller *controller, | |||
325 | * @param config the serialized configuration | 325 | * @param config the serialized configuration |
326 | * @param size the size of config | 326 | * @param size the size of config |
327 | * @param xconfig will be set to the compressed configuration (memory is fresly | 327 | * @param xconfig will be set to the compressed configuration (memory is fresly |
328 | * allocated) | 328 | * allocated) |
329 | * @return the size of the xconfig | 329 | * @return the size of the xconfig |
330 | */ | 330 | */ |
331 | size_t | 331 | size_t |
332 | GNUNET_TESTBED_compress_config_ (const char *config, size_t size, | 332 | GNUNET_TESTBED_compress_config_ (const char *config, size_t size, |
333 | char **xconfig); | 333 | char **xconfig); |
334 | 334 | ||
335 | 335 | ||
336 | /** | 336 | /** |
@@ -352,8 +352,8 @@ GNUNET_TESTBED_operation_add_ (struct GNUNET_TESTBED_Operation *op); | |||
352 | */ | 352 | */ |
353 | struct GNUNET_TESTBED_HelperInit * | 353 | struct GNUNET_TESTBED_HelperInit * |
354 | GNUNET_TESTBED_create_helper_init_msg_ (const char *cname, | 354 | GNUNET_TESTBED_create_helper_init_msg_ (const char *cname, |
355 | const struct | 355 | const struct GNUNET_CONFIGURATION_Handle |
356 | GNUNET_CONFIGURATION_Handle *cfg); | 356 | *cfg); |
357 | 357 | ||
358 | 358 | ||
359 | /** | 359 | /** |
@@ -368,12 +368,11 @@ GNUNET_TESTBED_create_helper_init_msg_ (const char *cname, | |||
368 | * @param cc the callback to call when reply is available | 368 | * @param cc the callback to call when reply is available |
369 | * @param cc_cls the closure for the above callback | 369 | * @param cc_cls the closure for the above callback |
370 | * @return the operation context which can be used to cancel the forwarded | 370 | * @return the operation context which can be used to cancel the forwarded |
371 | * operation | 371 | * operation |
372 | */ | 372 | */ |
373 | struct OperationContext * | 373 | struct OperationContext * |
374 | GNUNET_TESTBED_forward_operation_msg_ (struct GNUNET_TESTBED_Controller | 374 | GNUNET_TESTBED_forward_operation_msg_ (struct GNUNET_TESTBED_Controller |
375 | * controller, | 375 | *controller, uint64_t operation_id, |
376 | uint64_t operation_id, | ||
377 | const struct GNUNET_MessageHeader *msg, | 376 | const struct GNUNET_MessageHeader *msg, |
378 | GNUNET_CLIENT_MessageHandler cc, | 377 | GNUNET_CLIENT_MessageHandler cc, |
379 | void *cc_cls); | 378 | void *cc_cls); |