From: Nathan S. Evans Date: Mon, 14 Jun 2010 12:18:19 +0000 (+0000) Subject: changes to use names instead of numbers for topologies and topology options X-Git-Tag: initial-import-from-subversion-38251~21393 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=17c1a362d334ef2bdce4f2b545e5488fb6e4fca5;p=oweals%2Fgnunet.git changes to use names instead of numbers for topologies and topology options --- 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