aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-10 10:59:34 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-10 10:59:34 +0000
commite3e2e5839cc3f7c1efb4bee1826f185169b034fa (patch)
tree4dd1a750e24025a5763400b77d07ccb0a3b698a6 /src/testbed/testbed_api.h
parenta0e539e0e1911c2e68df06594624c3f53d569870 (diff)
downloadgnunet-e3e2e5839cc3f7c1efb4bee1826f185169b034fa.tar.gz
gnunet-e3e2e5839cc3f7c1efb4bee1826f185169b034fa.zip
operation id generation from controller host id and internal counter
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r--src/testbed/testbed_api.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/testbed/testbed_api.h b/src/testbed/testbed_api.h
index 020d951a2..251b8a56a 100644
--- a/src/testbed/testbed_api.h
+++ b/src/testbed/testbed_api.h
@@ -299,7 +299,7 @@ struct GNUNET_TESTBED_Controller
299 /** 299 /**
300 * The operation id counter. use current value and increment 300 * The operation id counter. use current value and increment
301 */ 301 */
302 uint64_t operation_counter; 302 uint32_t operation_counter;
303 303
304 /** 304 /**
305 * The controller event mask 305 * The controller event mask
@@ -424,5 +424,16 @@ GNUNET_TESTBED_parse_error_string_ (const struct
424 GNUNET_TESTBED_OperationFailureEventMessage 424 GNUNET_TESTBED_OperationFailureEventMessage
425 *msg); 425 *msg);
426 426
427
428/**
429 * Function to return the operation id for a controller. The operation id is
430 * created from the controllers host id and its internal operation counter.
431 *
432 * @param controller the handle to the controller whose operation id has to be incremented
433 * @return the incremented operation id.
434 */
435uint64_t
436GNUNET_TESTBED_get_next_op_id (struct GNUNET_TESTBED_Controller *controller);
437
427#endif 438#endif
428/* end of testbed_api.h */ 439/* end of testbed_api.h */