From 81e041f4ea19985a91a3b2ee5a857a26ff3a2d59 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 19 Jul 2011 13:03:05 +0000 Subject: new function --- src/include/gnunet_testing_lib.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/include/gnunet_testing_lib.h') diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 8c76457e3..35a41b490 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h @@ -997,6 +997,21 @@ GNUNET_TESTING_peergroup_start( void *peergroup_cls, const struct GNUNET_TESTING_Host *hostnames); +/** + * Print current topology to a graphviz readable file. + * + * @param pg a currently running peergroup to print to file + * @param output_filename the file to write the topology to + * @param notify_cb callback to call upon completion or failure + * @param notify_cb_cls closure for notify_cb + * + */ +void +GNUNET_TESTING_peergroup_topology_to_file(struct GNUNET_TESTING_PeerGroup *pg, + const char *output_filename, + GNUNET_TESTING_NotifyCompletion notify_cb, + void *notify_cb_cls); + #if 0 /* keep Emacsens' auto-indent happy */ { -- cgit v1.2.3