diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-20 13:08:05 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-20 13:08:05 +0000 |
commit | d5764ce0391a8089341a57e9c8cba41b15cc6c7b (patch) | |
tree | 2607abc16e83a28589785724dd297ab7ead2035e /src/testbed/testbed_api_topology.h | |
parent | b0ca95f6c05e8486e252b4d8bdd6ae16b6d2560a (diff) | |
download | gnunet-d5764ce0391a8089341a57e9c8cba41b15cc6c7b.tar.gz gnunet-d5764ce0391a8089341a57e9c8cba41b15cc6c7b.zip |
- topology name handling
Diffstat (limited to 'src/testbed/testbed_api_topology.h')
-rw-r--r-- | src/testbed/testbed_api_topology.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_topology.h b/src/testbed/testbed_api_topology.h index b5ae8ce44..b3430f5f3 100644 --- a/src/testbed/testbed_api_topology.h +++ b/src/testbed/testbed_api_topology.h | |||
@@ -42,6 +42,31 @@ GNUNET_TESTBED_2dtorus_calc_links (unsigned int num_peers, | |||
42 | unsigned int *rows, | 42 | unsigned int *rows, |
43 | unsigned int **rows_len); | 43 | unsigned int **rows_len); |
44 | 44 | ||
45 | |||
46 | /** | ||
47 | * Get a topology from a string input. | ||
48 | * | ||
49 | * @param topology where to write the retrieved topology | ||
50 | * @param topology_string The string to attempt to | ||
51 | * get a configuration value from | ||
52 | * @return GNUNET_YES if topology string matched a | ||
53 | * known topology, GNUNET_NO if not | ||
54 | */ | ||
55 | int | ||
56 | GNUNET_TESTBED_topology_get_ (enum GNUNET_TESTBED_TopologyOption *topology, | ||
57 | const char *topology_string); | ||
58 | |||
59 | |||
60 | /** | ||
61 | * Returns the string corresponding to the given topology | ||
62 | * | ||
63 | * @param topology the topology | ||
64 | * @return the string (freshly allocated) of given topology; NULL if topology cannot be | ||
65 | * expressed as a string | ||
66 | */ | ||
67 | char * | ||
68 | GNUNET_TESTBED_topology_to_str_ (enum GNUNET_TESTBED_TopologyOption topology); | ||
69 | |||
45 | #endif | 70 | #endif |
46 | /* end of testbed_api_topology.h */ | 71 | /* end of testbed_api_topology.h */ |
47 | 72 | ||