aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib.h
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-06-14 12:18:19 +0000
committerNathan S. Evans <evans@in.tum.de>2010-06-14 12:18:19 +0000
commit17c1a362d334ef2bdce4f2b545e5488fb6e4fca5 (patch)
tree89328985b85218892546968aa2f1b0edbdec877b /src/include/gnunet_testing_lib.h
parentf108c06868a1a9062e0098b6bc7dfeb9dcfddfe1 (diff)
downloadgnunet-17c1a362d334ef2bdce4f2b545e5488fb6e4fca5.tar.gz
gnunet-17c1a362d334ef2bdce4f2b545e5488fb6e4fca5.zip
changes to use names instead of numbers for topologies and topology options
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r--src/include/gnunet_testing_lib.h26
1 files changed, 26 insertions, 0 deletions
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
669 GNUNET_TESTING_TOPOLOGY_OPTION_NONE 669 GNUNET_TESTING_TOPOLOGY_OPTION_NONE
670}; 670};
671 671
672
673/**
674 * Get a topology from a string input.
675 *
676 * @param topology where to write the retrieved topology
677 * @param topology_string The string to attempt to
678 * get a configuration value from
679 * @return GNUNET_YES if topology string matched a
680 * known topology, GNUNET_NO if not
681 */
682int
683GNUNET_TESTING_topology_get(enum GNUNET_TESTING_Topology *topology, char * topology_string);
684
685/**
686 * Get connect topology option from string input.
687 *
688 * @param topology where to write the retrieved topology
689 * @param topology_string The string to attempt to
690 * get a configuration value from
691 * @return GNUNET_YES if topology string matched a
692 * known topology, GNUNET_NO if not
693 */
694int
695GNUNET_TESTING_topology_option_get(enum GNUNET_TESTING_TopologyOption *topology, char * topology_string);
696
697
672/** 698/**
673 * Takes a peer group and creates a topology based on the 699 * Takes a peer group and creates a topology based on the
674 * one specified. Creates a topology means generates friend 700 * one specified. Creates a topology means generates friend