diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-25 14:32:37 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-25 14:32:37 +0000 |
commit | 60bb535cd0c6884d35ad02e5e74384a548d08bdf (patch) | |
tree | 61321e3f2631351e81bbccc5ba97c43ca4fb3562 /src/testbed/gnunet-service-testbed.h | |
parent | 27bc9bc00c38d9ae347599d05aa6fffd9db8f34e (diff) | |
download | gnunet-60bb535cd0c6884d35ad02e5e74384a548d08bdf.tar.gz gnunet-60bb535cd0c6884d35ad02e5e74384a548d08bdf.zip |
- rename
Diffstat (limited to 'src/testbed/gnunet-service-testbed.h')
-rw-r--r-- | src/testbed/gnunet-service-testbed.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/testbed/gnunet-service-testbed.h b/src/testbed/gnunet-service-testbed.h index df7d7635c..7d3994581 100644 --- a/src/testbed/gnunet-service-testbed.h +++ b/src/testbed/gnunet-service-testbed.h | |||
@@ -578,7 +578,7 @@ struct GNUNET_CONFIGURATION_Handle *our_config; | |||
578 | /** | 578 | /** |
579 | * The master context; generated with the first INIT message | 579 | * The master context; generated with the first INIT message |
580 | */ | 580 | */ |
581 | extern struct Context *TESTBED_context; | 581 | extern struct Context *GST_context; |
582 | 582 | ||
583 | /** | 583 | /** |
584 | * DLL head for forwarded operation contexts | 584 | * DLL head for forwarded operation contexts |
@@ -593,32 +593,32 @@ extern struct ForwardedOperationContext *fopcq_tail; | |||
593 | /** | 593 | /** |
594 | * A list of peers we know about | 594 | * A list of peers we know about |
595 | */ | 595 | */ |
596 | extern struct Peer **TESTBED_peer_list; | 596 | extern struct Peer **GST_peer_list; |
597 | 597 | ||
598 | /** | 598 | /** |
599 | * Array of hosts | 599 | * Array of hosts |
600 | */ | 600 | */ |
601 | extern struct GNUNET_TESTBED_Host **TESTBED_host_list; | 601 | extern struct GNUNET_TESTBED_Host **GST_host_list; |
602 | 602 | ||
603 | /** | 603 | /** |
604 | * A list of directly linked neighbours | 604 | * A list of directly linked neighbours |
605 | */ | 605 | */ |
606 | extern struct Slave **TESTBED_slave_list; | 606 | extern struct Slave **GST_slave_list; |
607 | 607 | ||
608 | /** | 608 | /** |
609 | * The size of the peer list | 609 | * The size of the peer list |
610 | */ | 610 | */ |
611 | extern unsigned int TESTBED_peer_list_size; | 611 | extern unsigned int GST_peer_list_size; |
612 | 612 | ||
613 | /** | 613 | /** |
614 | * The size of the host list | 614 | * The size of the host list |
615 | */ | 615 | */ |
616 | extern unsigned int TESTBED_host_list_size; | 616 | extern unsigned int GST_host_list_size; |
617 | 617 | ||
618 | /** | 618 | /** |
619 | * The size of directly linked neighbours list | 619 | * The size of directly linked neighbours list |
620 | */ | 620 | */ |
621 | extern unsigned int TESTBED_slave_list_size; | 621 | extern unsigned int GST_slave_list_size; |
622 | 622 | ||
623 | 623 | ||
624 | /** | 624 | /** |
@@ -628,7 +628,7 @@ extern unsigned int TESTBED_slave_list_size; | |||
628 | * @param msg the message to queue | 628 | * @param msg the message to queue |
629 | */ | 629 | */ |
630 | void | 630 | void |
631 | TESTBED_queue_message (struct GNUNET_SERVER_Client *client, | 631 | GST_queue_message (struct GNUNET_SERVER_Client *client, |
632 | struct GNUNET_MessageHeader *msg); | 632 | struct GNUNET_MessageHeader *msg); |
633 | 633 | ||
634 | 634 | ||
@@ -638,7 +638,7 @@ TESTBED_queue_message (struct GNUNET_SERVER_Client *client, | |||
638 | * @param peer the peer structure to destroy | 638 | * @param peer the peer structure to destroy |
639 | */ | 639 | */ |
640 | void | 640 | void |
641 | TESTBED_destroy_peer (struct Peer *peer); | 641 | GST_destroy_peer (struct Peer *peer); |
642 | 642 | ||
643 | 643 | ||
644 | /** | 644 | /** |
@@ -648,7 +648,7 @@ TESTBED_destroy_peer (struct Peer *peer); | |||
648 | * @return the HELLO message; NULL if not found | 648 | * @return the HELLO message; NULL if not found |
649 | */ | 649 | */ |
650 | const struct GNUNET_MessageHeader * | 650 | const struct GNUNET_MessageHeader * |
651 | TESTBED_hello_cache_lookup (const struct GNUNET_PeerIdentity *id); | 651 | GST_hello_cache_lookup (const struct GNUNET_PeerIdentity *id); |
652 | 652 | ||
653 | /** | 653 | /** |
654 | * Caches the HELLO of the given peer. Updates the HELLO if it was already | 654 | * Caches the HELLO of the given peer. Updates the HELLO if it was already |
@@ -658,7 +658,7 @@ TESTBED_hello_cache_lookup (const struct GNUNET_PeerIdentity *id); | |||
658 | * @param hello the HELLO message | 658 | * @param hello the HELLO message |
659 | */ | 659 | */ |
660 | void | 660 | void |
661 | TESTBED_hello_cache_add (const struct GNUNET_PeerIdentity *id, | 661 | GST_hello_cache_add (const struct GNUNET_PeerIdentity *id, |
662 | const struct GNUNET_MessageHeader *hello); | 662 | const struct GNUNET_MessageHeader *hello); |
663 | 663 | ||
664 | 664 | ||
@@ -668,14 +668,14 @@ TESTBED_hello_cache_add (const struct GNUNET_PeerIdentity *id, | |||
668 | * @param size the size of the cache | 668 | * @param size the size of the cache |
669 | */ | 669 | */ |
670 | void | 670 | void |
671 | TESTBED_cache_init (unsigned int size); | 671 | GST_cache_init (unsigned int size); |
672 | 672 | ||
673 | 673 | ||
674 | /** | 674 | /** |
675 | * Clear cache | 675 | * Clear cache |
676 | */ | 676 | */ |
677 | void | 677 | void |
678 | TESTBED_cache_clear (); | 678 | GST_cache_clear (); |
679 | 679 | ||
680 | 680 | ||
681 | /** | 681 | /** |
@@ -687,7 +687,7 @@ TESTBED_cache_clear (); | |||
687 | * is found | 687 | * is found |
688 | */ | 688 | */ |
689 | struct Route * | 689 | struct Route * |
690 | TESTBED_find_dest_route (uint32_t host_id); | 690 | GST_find_dest_route (uint32_t host_id); |
691 | 691 | ||
692 | 692 | ||
693 | /** | 693 | /** |
@@ -698,7 +698,7 @@ TESTBED_find_dest_route (uint32_t host_id); | |||
698 | * @param message the actual message | 698 | * @param message the actual message |
699 | */ | 699 | */ |
700 | void | 700 | void |
701 | TESTBED_handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client, | 701 | GST_handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client, |
702 | const struct GNUNET_MessageHeader *message); | 702 | const struct GNUNET_MessageHeader *message); |
703 | 703 | ||
704 | 704 | ||
@@ -712,7 +712,7 @@ TESTBED_handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client, | |||
712 | * @param host the host which has to be registered | 712 | * @param host the host which has to be registered |
713 | */ | 713 | */ |
714 | void | 714 | void |
715 | TESTBED_queue_host_registration (struct Slave *slave, | 715 | GST_queue_host_registration (struct Slave *slave, |
716 | GNUNET_TESTBED_HostRegistrationCompletion cb, | 716 | GNUNET_TESTBED_HostRegistrationCompletion cb, |
717 | void *cb_cls, | 717 | void *cb_cls, |
718 | struct GNUNET_TESTBED_Host *host); | 718 | struct GNUNET_TESTBED_Host *host); |
@@ -725,7 +725,7 @@ TESTBED_queue_host_registration (struct Slave *slave, | |||
725 | * @param msg the message to relay | 725 | * @param msg the message to relay |
726 | */ | 726 | */ |
727 | void | 727 | void |
728 | TESTBED_forwarded_operation_reply_relay (void *cls, | 728 | GST_forwarded_operation_reply_relay (void *cls, |
729 | const struct GNUNET_MessageHeader *msg); | 729 | const struct GNUNET_MessageHeader *msg); |
730 | 730 | ||
731 | 731 | ||
@@ -736,7 +736,7 @@ TESTBED_forwarded_operation_reply_relay (void *cls, | |||
736 | * @param tc the task context from scheduler | 736 | * @param tc the task context from scheduler |
737 | */ | 737 | */ |
738 | void | 738 | void |
739 | TESTBED_forwarded_operation_timeout (void *cls, | 739 | GST_forwarded_operation_timeout (void *cls, |
740 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 740 | const struct GNUNET_SCHEDULER_TaskContext *tc); |
741 | 741 | ||
742 | 742 | ||
@@ -748,7 +748,7 @@ TESTBED_forwarded_operation_timeout (void *cls, | |||
748 | * @param emsg the error message; can be NULL | 748 | * @param emsg the error message; can be NULL |
749 | */ | 749 | */ |
750 | void | 750 | void |
751 | TESTBED_send_operation_fail_msg (struct GNUNET_SERVER_Client *client, | 751 | GST_send_operation_fail_msg (struct GNUNET_SERVER_Client *client, |
752 | uint64_t operation_id, const char *emsg); | 752 | uint64_t operation_id, const char *emsg); |
753 | 753 | ||
754 | 754 | ||
@@ -760,7 +760,7 @@ TESTBED_send_operation_fail_msg (struct GNUNET_SERVER_Client *client, | |||
760 | * @param message the actual message | 760 | * @param message the actual message |
761 | */ | 761 | */ |
762 | void | 762 | void |
763 | TESTBED_handle_overlay_request_connect (void *cls, | 763 | GST_handle_overlay_request_connect (void *cls, |
764 | struct GNUNET_SERVER_Client *client, | 764 | struct GNUNET_SERVER_Client *client, |
765 | const struct GNUNET_MessageHeader | 765 | const struct GNUNET_MessageHeader |
766 | *message); | 766 | *message); |
@@ -772,7 +772,7 @@ TESTBED_handle_overlay_request_connect (void *cls, | |||
772 | * @param rhc the RegisteredHostContext | 772 | * @param rhc the RegisteredHostContext |
773 | */ | 773 | */ |
774 | void | 774 | void |
775 | TESTBED_process_next_focc (struct RegisteredHostContext *rhc); | 775 | GST_process_next_focc (struct RegisteredHostContext *rhc); |
776 | 776 | ||
777 | 777 | ||
778 | /** | 778 | /** |
@@ -781,21 +781,21 @@ TESTBED_process_next_focc (struct RegisteredHostContext *rhc); | |||
781 | * @param focc the ForwardedOverlayConnectContext to cleanup | 781 | * @param focc the ForwardedOverlayConnectContext to cleanup |
782 | */ | 782 | */ |
783 | void | 783 | void |
784 | TESTBED_cleanup_focc (struct ForwardedOverlayConnectContext *focc); | 784 | GST_cleanup_focc (struct ForwardedOverlayConnectContext *focc); |
785 | 785 | ||
786 | 786 | ||
787 | /** | 787 | /** |
788 | * Clears all pending overlay connect contexts in queue | 788 | * Clears all pending overlay connect contexts in queue |
789 | */ | 789 | */ |
790 | void | 790 | void |
791 | TESTBED_free_occq (); | 791 | GST_free_occq (); |
792 | 792 | ||
793 | 793 | ||
794 | /** | 794 | /** |
795 | * Clears all pending remote overlay connect contexts in queue | 795 | * Clears all pending remote overlay connect contexts in queue |
796 | */ | 796 | */ |
797 | void | 797 | void |
798 | TESTBED_free_roccq (); | 798 | GST_free_roccq (); |
799 | 799 | ||
800 | 800 | ||
801 | 801 | ||