From 17c1a362d334ef2bdce4f2b545e5488fb6e4fca5 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 14 Jun 2010 12:18:19 +0000 Subject: [PATCH] changes to use names instead of numbers for topologies and topology options --- src/include/gnunet_testing_lib.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 9fd43c8ff..8c227eb39 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h @@ -669,6 +669,32 @@ enum GNUNET_TESTING_TopologyOption GNUNET_TESTING_TOPOLOGY_OPTION_NONE }; + +/** + * Get a topology from a string input. + * + * @param topology where to write the retrieved topology + * @param topology_string The string to attempt to + * get a configuration value from + * @return GNUNET_YES if topology string matched a + * known topology, GNUNET_NO if not + */ +int +GNUNET_TESTING_topology_get(enum GNUNET_TESTING_Topology *topology, char * topology_string); + +/** + * Get connect topology option from string input. + * + * @param topology where to write the retrieved topology + * @param topology_string The string to attempt to + * get a configuration value from + * @return GNUNET_YES if topology string matched a + * known topology, GNUNET_NO if not + */ +int +GNUNET_TESTING_topology_option_get(enum GNUNET_TESTING_TopologyOption *topology, char * topology_string); + + /** * Takes a peer group and creates a topology based on the * one specified. Creates a topology means generates friend -- 2.25.1