changes to use names instead of numbers for topologies and topology options
authorNathan S. Evans <evans@in.tum.de>
Mon, 14 Jun 2010 12:18:19 +0000 (12:18 +0000)
committerNathan S. Evans <evans@in.tum.de>
Mon, 14 Jun 2010 12:18:19 +0000 (12:18 +0000)
src/include/gnunet_testing_lib.h

index 9fd43c8ff4e8d0ce5d981a0913901e66f832b41d..8c227eb39f0bfee83a5933110fe662ec5cdb45a4 100644 (file)
@@ -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