new function
authorNathan S. Evans <evans@in.tum.de>
Tue, 19 Jul 2011 13:03:05 +0000 (13:03 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 19 Jul 2011 13:03:05 +0000 (13:03 +0000)
src/include/gnunet_testing_lib.h

index 8c76457e3f050abfbf5a29d69ba9208450f07f6e..35a41b4906e37eb7335cbb240d58c71fb6908044 100644 (file)
@@ -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 */
 {