diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-28 10:47:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-28 10:47:50 +0000 |
commit | b917264c966ab8a8fa8476ebc7d718dcea8f4143 (patch) | |
tree | a3f170889774cec8099e675ab3bf38232c74ed13 /src/include/gnunet_testing_lib.h | |
parent | 30fd6fcf51409d4adcb4372c8360eaa235919670 (diff) | |
download | gnunet-b917264c966ab8a8fa8476ebc7d718dcea8f4143.tar.gz gnunet-b917264c966ab8a8fa8476ebc7d718dcea8f4143.zip |
eliminating testbed API that was never implemented and is not needed
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 3524b1c86..627a90694 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -769,74 +769,6 @@ GNUNET_TESTING_daemons_vary (struct GNUNET_TESTING_PeerGroup *pg, | |||
769 | void *cb_cls); | 769 | void *cb_cls); |
770 | 770 | ||
771 | 771 | ||
772 | /** | ||
773 | * Start "count" GNUnet daemons with a particular topology. | ||
774 | * | ||
775 | * @param sched scheduler to use | ||
776 | * @param cfg configuration template to use | ||
777 | * @param count number of peers the testbed should have | ||
778 | * @param topology desired topology (enforced via F2F) | ||
779 | * @param cb function to call on each daemon that was started | ||
780 | * @param cb_cls closure for cb | ||
781 | * @param hostname where to run the peers; can be NULL (to run | ||
782 | * everything on localhost). Additional | ||
783 | * hosts can be specified using a NULL-terminated list of | ||
784 | * varargs, hosts will then be used round-robin from that | ||
785 | * list. | ||
786 | * @return handle to control the testbed | ||
787 | */ | ||
788 | struct GNUNET_TESTING_Testbed * | ||
789 | GNUNET_TESTING_testbed_start (struct GNUNET_SCHEDULER_Handle *sched, | ||
790 | const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
791 | unsigned int count, | ||
792 | enum GNUNET_TESTING_Topology topology, | ||
793 | GNUNET_TESTING_NotifyDaemonRunning cb, | ||
794 | void *cb_cls, | ||
795 | const char *hostname, | ||
796 | ...); | ||
797 | |||
798 | |||
799 | /** | ||
800 | * Stop all of the daemons started with the start function. | ||
801 | * | ||
802 | * @param tb handle for the testbed | ||
803 | * @param cb function to call when done | ||
804 | * @param cb_cls closure for cb | ||
805 | */ | ||
806 | void | ||
807 | GNUNET_TESTING_testbed_stop (struct GNUNET_TESTING_Testbed *tb, | ||
808 | GNUNET_TESTING_NotifyCompletion cb, | ||
809 | void *cb_cls ); | ||
810 | |||
811 | |||
812 | /** | ||
813 | * Simulate churn in the testbed by stopping some peers (and possibly | ||
814 | * re-starting others if churn is called multiple times). This | ||
815 | * function can only be used to create leave-join churn (peers "never" | ||
816 | * leave for good). First "voff" random peers that are currently | ||
817 | * online will be taken offline; then "von" random peers that are then | ||
818 | * offline will be put back online. No notifications will be | ||
819 | * generated for any of these operations except for the callback upon | ||
820 | * completion. Note that the implementation is at liberty to keep | ||
821 | * the ARM service itself (but none of the other services or daemons) | ||
822 | * running even though the "peer" is being varied offline. | ||
823 | * | ||
824 | * @param tb handle for the testbed | ||
825 | * @param voff number of peers that should go offline | ||
826 | * @param von number of peers that should come back online; | ||
827 | * must be zero on first call (since "testbed_start" | ||
828 | * always starts all of the peers) | ||
829 | * @param cb function to call at the end | ||
830 | * @param cb_cls closure for cb | ||
831 | */ | ||
832 | void | ||
833 | GNUNET_TESTING_testbed_churn (struct GNUNET_TESTING_Testbed *tb, | ||
834 | unsigned int voff, | ||
835 | unsigned int von, | ||
836 | GNUNET_TESTING_NotifyCompletion cb, | ||
837 | void *cb_cls); | ||
838 | |||
839 | |||
840 | #if 0 /* keep Emacsens' auto-indent happy */ | 772 | #if 0 /* keep Emacsens' auto-indent happy */ |
841 | { | 773 | { |
842 | #endif | 774 | #endif |