summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-09-01 09:23:52 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-09-01 09:23:52 +0000
commit06e2ee2b2be79cee6acc2628f9b91a3591b014df (patch)
tree32745eb33c7c0ec4c65b10f3487eba51e422fa9d /src/transport/transport-testing.h
parent734360920c83580d3d1ce2b3c4668da3816e28b2 (diff)
latest changes
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index 96fe216e9..852f060e4 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -123,7 +123,15 @@ GNUNET_TRANSPORT_TESTING_connect_peers_cancel (void *cc);
*/
/**
- * this function takes the filename (e.g. argv[0), removes a "lt-"-prefix and
+ * Extracts the test filename from an absolute file name and removes the extension
+ * @param file absolute file name
+ * @param dest where to store result
+ */
+void
+GNUNET_TRANSPORT_TESTING_get_test_name (const char *file, char **dest);
+
+/**
+ * This function takes the filename (e.g. argv[0), removes a "lt-"-prefix and
* if existing ".exe"-prefix and adds the peer-number
* @param file filename of the test, e.g. argv[0]
* @param cfgname where to write the result
@@ -133,10 +141,26 @@ void
GNUNET_TRANSPORT_TESTING_get_config_name (const char *file, char **cfgname,
int count);
+
+/**
+ * Extracts the plugin anme from an absolute file name and the test name
+ * @param file absolute file name
+ * @param test test name
+ * @param dest where to store result
+ */
void
-GNUNET_TRANSPORT_TESTING_get_test_plugin (const char * executable, const char * testname, char **pluginname);
+GNUNET_TRANSPORT_TESTING_get_test_plugin_name (const char *executable,
+ const char *testname,
+ char **pluginname);
+
+/**
+ * Extracts the filename from an absolute file name and removes the extenstion
+ * @param file absolute file name
+ * @param dest where to store result
+ */
void
-GNUNET_TRANSPORT_TESTING_get_test_sourcename (const char * file, char **testname);
+GNUNET_TRANSPORT_TESTING_get_test_source_name (const char *file,
+ char **testname);
/* end of transport_testing.h */