diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-14 12:18:19 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-14 12:18:19 +0000 |
commit | 17c1a362d334ef2bdce4f2b545e5488fb6e4fca5 (patch) | |
tree | 89328985b85218892546968aa2f1b0edbdec877b /src/include/gnunet_testing_lib.h | |
parent | f108c06868a1a9062e0098b6bc7dfeb9dcfddfe1 (diff) | |
download | gnunet-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.h | 26 |
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 | */ | ||
682 | int | ||
683 | GNUNET_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 | */ | ||
694 | int | ||
695 | GNUNET_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 |