From 925c210d978cd0e3dfc718d9e4c65ad713a817b9 Mon Sep 17 00:00:00 2001 From: t3sserakt Date: Thu, 15 Apr 2021 15:35:28 +0200 Subject: - added handling of asynchronous task to testing ng. added testbed commands for setting up test invironment (atm wihtout the use of the ne async handling) --- src/include/gnunet_testbed_ng_service.h | 35 ++------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'src/include/gnunet_testbed_ng_service.h') diff --git a/src/include/gnunet_testbed_ng_service.h b/src/include/gnunet_testbed_ng_service.h index a6f30889f..370617e68 100644 --- a/src/include/gnunet_testbed_ng_service.h +++ b/src/include/gnunet_testbed_ng_service.h @@ -38,33 +38,7 @@ #include "gnunet_util_lib.h" #include "gnunet_testing_ng_lib.h" -struct ServiceState -{ - /** - * Handle to operation - */ - struct GNUNET_TESTBED_Operation *operation; - - /** - * Flag indicating if service is ready. - */ - int service_ready; - - /** - * Abort task identifier - */ - struct GNUNET_SCHEDULER_Task *abort_task; - - /** - * Label of peer command. - */ - const char *peer_label; - - /** - * Name of service to start. - */ - const char *servicename; -}; +struct TngState; struct PeerCmdState { @@ -110,11 +84,6 @@ struct PeerCmdState */ struct GNUNET_SCHEDULER_Task *abort_task; - /** - * Handle for host registration - */ - struct GNUNET_TESTBED_HostRegistrationHandle *reg_handle; - /** * Flag indicating if peer is ready. */ @@ -242,6 +211,6 @@ void GNUNET_TESTBED_shutdown_peer (struct PeerCmdState *ps); void -GNUNET_TESTBED_shutdown_service (struct ServiceState *ss); +GNUNET_TESTBED_shutdown_service (struct TngState *ss); #endif -- cgit v1.2.3