summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-08-31 13:48:59 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-08-31 13:48:59 +0000
commit721db5457eebf6e0d713cde2585ba298dbcfe1b7 (patch)
tree26c601343f30f3447fcc3a33f5eccec1d3373b64 /src/transport/transport-testing.h
parentc0d23c3d48800d92773a7e65cf1eb19998da98b5 (diff)
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.h15
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,
void
GNUNET_TRANSPORT_TESTING_connect_peers_cancel (void *cc);
+/*
+ * Some utility functions
+ */
+
+/**
+ * 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
+ * @param count peer number
+ */
+void
+GNUNET_TRANSPORT_TESTING_get_config_name (const char *file, char **cfgname,
+ int count);
+
/* end of transport_testing.h */