aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-08-31 07:52:40 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-08-31 07:52:40 +0000
commit1a29a996fa7071cd798fbd75c85edbd6daaaeb3c (patch)
treebffd2fb0ae30b7d51bd670702c619b34d25942d2 /src/include/gnunet_testbed_service.h
parent970b7619ab2c7cbaad1d8b0cb365faef97fdb0e5 (diff)
downloadgnunet-1a29a996fa7071cd798fbd75c85edbd6daaaeb3c.tar.gz
gnunet-1a29a996fa7071cd798fbd75c85edbd6daaaeb3c.zip
Removed RunHandle return from GNUNET_TESTBED_run
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index 37ffcb750..b8e0cf3f7 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -1114,12 +1114,6 @@ GNUNET_TESTBED_destroy (struct GNUNET_TESTBED_Testbed *testbed);
1114 1114
1115 1115
1116/** 1116/**
1117 * Opaque handle to testbed run
1118 */
1119struct GNUNET_TESTBED_RunHandle;
1120
1121
1122/**
1123 * Convenience method for running a testbed with 1117 * Convenience method for running a testbed with
1124 * a single call. Underlay and overlay topology 1118 * a single call. Underlay and overlay topology
1125 * are configured using the "UNDERLAY" and "OVERLAY" 1119 * are configured using the "UNDERLAY" and "OVERLAY"
@@ -1127,7 +1121,8 @@ struct GNUNET_TESTBED_RunHandle;
1127 * (with possible options given in "UNDERLAY_XXX" and/or 1121 * (with possible options given in "UNDERLAY_XXX" and/or
1128 * "OVERLAY_XXX"). 1122 * "OVERLAY_XXX").
1129 * 1123 *
1130 * The testbed is to be terminated using a calling GNUNET_TESTBED_shutdown_run() 1124 * The testbed is to be terminated using a call to
1125 * "GNUNET_SCHEDULER_shutdown".
1131 * 1126 *
1132 * @param host_filename name of the file with the 'hosts', NULL 1127 * @param host_filename name of the file with the 'hosts', NULL
1133 * to run everything on 'localhost' 1128 * to run everything on 'localhost'
@@ -1144,9 +1139,8 @@ struct GNUNET_TESTBED_RunHandle;
1144 * @param cc_cls closure for cc 1139 * @param cc_cls closure for cc
1145 * @param master task to run once the testbed is ready 1140 * @param master task to run once the testbed is ready
1146 * @param master_cls closure for 'task'. 1141 * @param master_cls closure for 'task'.
1147 * @return the handle for this testbed run
1148 */ 1142 */
1149struct GNUNET_TESTBED_RunHandle * 1143void
1150GNUNET_TESTBED_run (const char *host_filename, 1144GNUNET_TESTBED_run (const char *host_filename,
1151 const struct GNUNET_CONFIGURATION_Handle *cfg, 1145 const struct GNUNET_CONFIGURATION_Handle *cfg,
1152 unsigned int num_peers, 1146 unsigned int num_peers,
@@ -1158,15 +1152,6 @@ GNUNET_TESTBED_run (const char *host_filename,
1158 1152
1159 1153
1160/** 1154/**
1161 * Stops the testbed run and releases any used resources
1162 *
1163 * @param rh the tesbed run handle
1164 */
1165void
1166GNUNET_TESTBED_shutdown_run (struct GNUNET_TESTBED_RunHandle *rh);
1167
1168
1169/**
1170 * Signature of a main function for a testcase. 1155 * Signature of a main function for a testcase.
1171 * 1156 *
1172 * @param cls closure 1157 * @param cls closure
@@ -1185,9 +1170,9 @@ typedef void (*GNUNET_TESTBED_TestMaster)(void *cls,
1185 * "[testbed]" section of the configuration (with possible options 1170 * "[testbed]" section of the configuration (with possible options
1186 * given in "UNDERLAY_XXX" and/or "OVERLAY_XXX"). 1171 * given in "UNDERLAY_XXX" and/or "OVERLAY_XXX").
1187 * 1172 *
1188 * The test is to be terminated by calling GNUNET_TESTBED_shutdown_run() 1173 * The test is to be terminated using a call to
1189 * If starting the test fails, the program is stopped without 'master' ever 1174 * "GNUNET_SCHEDULER_shutdown". If starting the test fails,
1190 * being run 1175 * the program is stopped without 'master' ever being run.
1191 * 1176 *
1192 * NOTE: this function should be called from 'main', NOT from 1177 * NOTE: this function should be called from 'main', NOT from
1193 * within a GNUNET_SCHEDULER-loop. This function will initialze 1178 * within a GNUNET_SCHEDULER-loop. This function will initialze