diff options
Diffstat (limited to 'src/testbed/testbed_api.h')
-rw-r--r-- | src/testbed/testbed_api.h | 13 |
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 | */ | ||
435 | uint64_t | ||
436 | GNUNET_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 */ |