aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-06e2ee2b2be79cee6acc2628f9b91a3591b014df.tar.gz
gnunet-06e2ee2b2be79cee6acc2628f9b91a3591b014df.zip
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);
123 */ 123 */
124 124
125/** 125/**
126 * this function takes the filename (e.g. argv[0), removes a "lt-"-prefix and 126 * Extracts the test filename from an absolute file name and removes the extension
127 * @param file absolute file name
128 * @param dest where to store result
129 */
130void
131GNUNET_TRANSPORT_TESTING_get_test_name (const char *file, char **dest);
132
133/**
134 * This function takes the filename (e.g. argv[0), removes a "lt-"-prefix and
127 * if existing ".exe"-prefix and adds the peer-number 135 * if existing ".exe"-prefix and adds the peer-number
128 * @param file filename of the test, e.g. argv[0] 136 * @param file filename of the test, e.g. argv[0]
129 * @param cfgname where to write the result 137 * @param cfgname where to write the result
@@ -133,10 +141,26 @@ void
133GNUNET_TRANSPORT_TESTING_get_config_name (const char *file, char **cfgname, 141GNUNET_TRANSPORT_TESTING_get_config_name (const char *file, char **cfgname,
134 int count); 142 int count);
135 143
144
145/**
146 * Extracts the plugin anme from an absolute file name and the test name
147 * @param file absolute file name
148 * @param test test name
149 * @param dest where to store result
150 */
136void 151void
137GNUNET_TRANSPORT_TESTING_get_test_plugin (const char * executable, const char * testname, char **pluginname); 152GNUNET_TRANSPORT_TESTING_get_test_plugin_name (const char *executable,
153 const char *testname,
154 char **pluginname);
155
138 156
157/**
158 * Extracts the filename from an absolute file name and removes the extenstion
159 * @param file absolute file name
160 * @param dest where to store result
161 */
139void 162void
140GNUNET_TRANSPORT_TESTING_get_test_sourcename (const char * file, char **testname); 163GNUNET_TRANSPORT_TESTING_get_test_source_name (const char *file,
164 char **testname);
141 165
142/* end of transport_testing.h */ 166/* end of transport_testing.h */