aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_ng_service.h
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-04-15 15:35:28 +0200
committert3sserakt <t3ss@posteo.de>2021-04-15 15:35:28 +0200
commit925c210d978cd0e3dfc718d9e4c65ad713a817b9 (patch)
treeb769182d686220816a387336d525f37124dbad72 /src/include/gnunet_testbed_ng_service.h
parenta785d16b7f49947458782f65f344036a848f4ac7 (diff)
downloadgnunet-925c210d978cd0e3dfc718d9e4c65ad713a817b9.tar.gz
gnunet-925c210d978cd0e3dfc718d9e4c65ad713a817b9.zip
- 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)
Diffstat (limited to 'src/include/gnunet_testbed_ng_service.h')
-rw-r--r--src/include/gnunet_testbed_ng_service.h35
1 files changed, 2 insertions, 33 deletions
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 @@
38#include "gnunet_util_lib.h" 38#include "gnunet_util_lib.h"
39#include "gnunet_testing_ng_lib.h" 39#include "gnunet_testing_ng_lib.h"
40 40
41struct ServiceState 41struct TngState;
42{
43 /**
44 * Handle to operation
45 */
46 struct GNUNET_TESTBED_Operation *operation;
47
48 /**
49 * Flag indicating if service is ready.
50 */
51 int service_ready;
52
53 /**
54 * Abort task identifier
55 */
56 struct GNUNET_SCHEDULER_Task *abort_task;
57
58 /**
59 * Label of peer command.
60 */
61 const char *peer_label;
62
63 /**
64 * Name of service to start.
65 */
66 const char *servicename;
67};
68 42
69struct PeerCmdState 43struct PeerCmdState
70{ 44{
@@ -111,11 +85,6 @@ struct PeerCmdState
111 struct GNUNET_SCHEDULER_Task *abort_task; 85 struct GNUNET_SCHEDULER_Task *abort_task;
112 86
113 /** 87 /**
114 * Handle for host registration
115 */
116 struct GNUNET_TESTBED_HostRegistrationHandle *reg_handle;
117
118 /**
119 * Flag indicating if peer is ready. 88 * Flag indicating if peer is ready.
120 */ 89 */
121 int peer_ready; 90 int peer_ready;
@@ -242,6 +211,6 @@ void
242GNUNET_TESTBED_shutdown_peer (struct PeerCmdState *ps); 211GNUNET_TESTBED_shutdown_peer (struct PeerCmdState *ps);
243 212
244void 213void
245GNUNET_TESTBED_shutdown_service (struct ServiceState *ss); 214GNUNET_TESTBED_shutdown_service (struct TngState *ss);
246 215
247#endif 216#endif