From 0043aada3f5172d461f89eecc9138b6a1754ca14 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 13 Mar 2013 10:51:45 +0000 Subject: Implement GNUNET_TESTBED_get_statistics() - resolves #2662 Test case for testing GNUNET_TESTBED_get_statistics() Fix waiting for SHUTDOWN_PEERS reply when controller crashes --- src/testbed/testbed_api_operations.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/testbed/testbed_api_operations.h') diff --git a/src/testbed/testbed_api_operations.h b/src/testbed/testbed_api_operations.h index 61b45e2365..403dd889c0 100644 --- a/src/testbed/testbed_api_operations.h +++ b/src/testbed/testbed_api_operations.h @@ -58,6 +58,17 @@ void GNUNET_TESTBED_operation_queue_destroy_ (struct OperationQueue *queue); +/** + * Destroys the operation queue if it is empty. If not empty return GNUNET_NO. + * + * @param queue the queue to destroy if empty + * @return GNUNET_YES if the queue is destroyed. GNUNET_NO if not (because it + * is not empty) + */ +int +GNUNET_TESTBED_operation_queue_destroy_empty_ (struct OperationQueue *q); + + /** * Function to reset the maximum number of operations in the given queue. If * max_active is lesser than the number of currently active operations, the -- cgit v1.2.3-18-g5258