- * @param pg the peergroup to iterate statistics of
- * @param cont continuation to call once call is completed(?)
- * @param proc processing function for each statistic retrieved
- * @param cls closure to pass to proc
- */
-void
-GNUNET_TESTING_get_statistics (struct GNUNET_TESTING_PeerGroup *pg,
- GNUNET_STATISTICS_Callback cont,
- GNUNET_TESTING_STATISTICS_Iterator proc, void *cls);
-
-/**
- * Topologies supported for testbeds.
- */
-enum GNUNET_TESTING_Topology
-{
- /**
- * A clique (everyone connected to everyone else).
- */
- GNUNET_TESTING_TOPOLOGY_CLIQUE,
-
- /**
- * Small-world network (2d torus plus random links).
- */
- GNUNET_TESTING_TOPOLOGY_SMALL_WORLD,
-
- /**
- * Small-world network (ring plus random links).
- */
- GNUNET_TESTING_TOPOLOGY_SMALL_WORLD_RING,
-
- /**
- * Ring topology.
- */
- GNUNET_TESTING_TOPOLOGY_RING,
-
- /**
- * 2-d torus.
- */
- GNUNET_TESTING_TOPOLOGY_2D_TORUS,
-
- /**
- * Random graph.
- */
- GNUNET_TESTING_TOPOLOGY_ERDOS_RENYI,
-
- /**
- * Certain percentage of peers are unable to communicate directly
- * replicating NAT conditions
- */
- GNUNET_TESTING_TOPOLOGY_INTERNAT,
-
- /**
- * Scale free topology.
- */
- GNUNET_TESTING_TOPOLOGY_SCALE_FREE,
-
- /**
- * Straight line topology.
- */
- GNUNET_TESTING_TOPOLOGY_LINE,
-
- /**
- * All peers are disconnected.
- */
- GNUNET_TESTING_TOPOLOGY_NONE,
-
- /**
- * Read a topology from a given file.
- */
- GNUNET_TESTING_TOPOLOGY_FROM_FILE
-};
-
-/**
- * Options for connecting a topology.
- */
-enum GNUNET_TESTING_TopologyOption
-{
- /**
- * Try to connect all peers specified in the topology.
- */
- GNUNET_TESTING_TOPOLOGY_OPTION_ALL,
-
- /**
- * Choose a random subset of connections to create.
- */
- GNUNET_TESTING_TOPOLOGY_OPTION_RANDOM,
-
- /**
- * Create at least X connections for each peer.
- */
- GNUNET_TESTING_TOPOLOGY_OPTION_MINIMUM,
-
- /**
- * Using a depth first search, create one connection
- * per peer. If any are missed (graph disconnected)
- * start over at those peers until all have at least one
- * connection.
- */
- GNUNET_TESTING_TOPOLOGY_OPTION_DFS,
-
- /**
- * Find the N closest peers to each allowed peer in the
- * topology and make sure a connection to those peers
- * exists in the connect topology.
- */
- GNUNET_TESTING_TOPOLOGY_OPTION_ADD_CLOSEST,
-
- /**
- * No options specified.
- */
- 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