aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-01-25 14:32:37 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-01-25 14:32:37 +0000
commit60bb535cd0c6884d35ad02e5e74384a548d08bdf (patch)
tree61321e3f2631351e81bbccc5ba97c43ca4fb3562 /src/testbed/gnunet-service-testbed.h
parent27bc9bc00c38d9ae347599d05aa6fffd9db8f34e (diff)
downloadgnunet-60bb535cd0c6884d35ad02e5e74384a548d08bdf.tar.gz
gnunet-60bb535cd0c6884d35ad02e5e74384a548d08bdf.zip
- rename
Diffstat (limited to 'src/testbed/gnunet-service-testbed.h')
-rw-r--r--src/testbed/gnunet-service-testbed.h48
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 */
581extern struct Context *TESTBED_context; 581extern 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 */
596extern struct Peer **TESTBED_peer_list; 596extern struct Peer **GST_peer_list;
597 597
598/** 598/**
599 * Array of hosts 599 * Array of hosts
600 */ 600 */
601extern struct GNUNET_TESTBED_Host **TESTBED_host_list; 601extern 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 */
606extern struct Slave **TESTBED_slave_list; 606extern 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 */
611extern unsigned int TESTBED_peer_list_size; 611extern 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 */
616extern unsigned int TESTBED_host_list_size; 616extern 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 */
621extern unsigned int TESTBED_slave_list_size; 621extern 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 */
630void 630void
631TESTBED_queue_message (struct GNUNET_SERVER_Client *client, 631GST_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 */
640void 640void
641TESTBED_destroy_peer (struct Peer *peer); 641GST_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 */
650const struct GNUNET_MessageHeader * 650const struct GNUNET_MessageHeader *
651TESTBED_hello_cache_lookup (const struct GNUNET_PeerIdentity *id); 651GST_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 */
660void 660void
661TESTBED_hello_cache_add (const struct GNUNET_PeerIdentity *id, 661GST_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 */
670void 670void
671TESTBED_cache_init (unsigned int size); 671GST_cache_init (unsigned int size);
672 672
673 673
674/** 674/**
675 * Clear cache 675 * Clear cache
676 */ 676 */
677void 677void
678TESTBED_cache_clear (); 678GST_cache_clear ();
679 679
680 680
681/** 681/**
@@ -687,7 +687,7 @@ TESTBED_cache_clear ();
687 * is found 687 * is found
688 */ 688 */
689struct Route * 689struct Route *
690TESTBED_find_dest_route (uint32_t host_id); 690GST_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 */
700void 700void
701TESTBED_handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client, 701GST_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 */
714void 714void
715TESTBED_queue_host_registration (struct Slave *slave, 715GST_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 */
727void 727void
728TESTBED_forwarded_operation_reply_relay (void *cls, 728GST_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 */
738void 738void
739TESTBED_forwarded_operation_timeout (void *cls, 739GST_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 */
750void 750void
751TESTBED_send_operation_fail_msg (struct GNUNET_SERVER_Client *client, 751GST_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 */
762void 762void
763TESTBED_handle_overlay_request_connect (void *cls, 763GST_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 */
774void 774void
775TESTBED_process_next_focc (struct RegisteredHostContext *rhc); 775GST_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 */
783void 783void
784TESTBED_cleanup_focc (struct ForwardedOverlayConnectContext *focc); 784GST_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 */
790void 790void
791TESTBED_free_occq (); 791GST_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 */
797void 797void
798TESTBED_free_roccq (); 798GST_free_roccq ();
799 799
800 800
801 801