diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-08-31 13:48:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-08-31 13:48:59 +0000 |
commit | 721db5457eebf6e0d713cde2585ba298dbcfe1b7 (patch) | |
tree | 26c601343f30f3447fcc3a33f5eccec1d3373b64 /src/transport/transport-testing.h | |
parent | c0d23c3d48800d92773a7e65cf1eb19998da98b5 (diff) | |
download | gnunet-721db5457eebf6e0d713cde2585ba298dbcfe1b7.tar.gz gnunet-721db5457eebf6e0d713cde2585ba298dbcfe1b7.zip |
moving code to generate cfg name used in every test to testing lib
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r-- | src/transport/transport-testing.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h index 3e5486eb7..7899279dc 100644 --- a/src/transport/transport-testing.h +++ b/src/transport/transport-testing.h | |||
@@ -118,4 +118,19 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct PeerContext *p1, | |||
118 | void | 118 | void |
119 | GNUNET_TRANSPORT_TESTING_connect_peers_cancel (void *cc); | 119 | GNUNET_TRANSPORT_TESTING_connect_peers_cancel (void *cc); |
120 | 120 | ||
121 | /* | ||
122 | * Some utility functions | ||
123 | */ | ||
124 | |||
125 | /** | ||
126 | * this function takes the filename (e.g. argv[0), removes a "lt-"-prefix and | ||
127 | * if existing ".exe"-prefix and adds the peer-number | ||
128 | * @param file filename of the test, e.g. argv[0] | ||
129 | * @param cfgname where to write the result | ||
130 | * @param count peer number | ||
131 | */ | ||
132 | void | ||
133 | GNUNET_TRANSPORT_TESTING_get_config_name (const char *file, char **cfgname, | ||
134 | int count); | ||
135 | |||
121 | /* end of transport_testing.h */ | 136 | /* end of transport_testing.h */ |