aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-01-25 15:28:08 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-01-25 15:28:08 +0000
commit30c5c323f28ade8a1e7c6c593778793e44accb3a (patch)
tree845955ec895d221338b44f0cadce7932932e78cc /src/testbed/gnunet-service-testbed.h
parent43d558efd13a3245e65efd0acdc9c4ba59cd2bee (diff)
downloadgnunet-30c5c323f28ade8a1e7c6c593778793e44accb3a.tar.gz
gnunet-30c5c323f28ade8a1e7c6c593778793e44accb3a.zip
- indent
Diffstat (limited to 'src/testbed/gnunet-service-testbed.h')
-rw-r--r--src/testbed/gnunet-service-testbed.h46
1 files changed, 22 insertions, 24 deletions
diff --git a/src/testbed/gnunet-service-testbed.h b/src/testbed/gnunet-service-testbed.h
index b3e917144..6165c91e5 100644
--- a/src/testbed/gnunet-service-testbed.h
+++ b/src/testbed/gnunet-service-testbed.h
@@ -96,7 +96,7 @@ struct ForwardedOperationContext
96 * The prev pointer for DLL 96 * The prev pointer for DLL
97 */ 97 */
98 struct ForwardedOperationContext *prev; 98 struct ForwardedOperationContext *prev;
99 99
100 /** 100 /**
101 * The generated operation context 101 * The generated operation context
102 */ 102 */
@@ -240,7 +240,7 @@ struct Slave
240 240
241struct Peer 241struct Peer
242{ 242{
243 243
244 union 244 union
245 { 245 {
246 struct 246 struct
@@ -255,7 +255,7 @@ struct Peer
255 * peer is configured with 255 * peer is configured with
256 */ 256 */
257 struct GNUNET_CONFIGURATION_Handle *cfg; 257 struct GNUNET_CONFIGURATION_Handle *cfg;
258 258
259 /** 259 /**
260 * Is the peer running 260 * Is the peer running
261 */ 261 */
@@ -329,7 +329,7 @@ struct Context
329 * The TESTING system handle for starting peers locally 329 * The TESTING system handle for starting peers locally
330 */ 330 */
331 struct GNUNET_TESTING_System *system; 331 struct GNUNET_TESTING_System *system;
332 332
333 /** 333 /**
334 * Our host id according to this context 334 * Our host id according to this context
335 */ 335 */
@@ -389,12 +389,12 @@ struct ForwardedOverlayConnectContext
389 * the id of peer 1 389 * the id of peer 1
390 */ 390 */
391 uint32_t peer1; 391 uint32_t peer1;
392 392
393 /** 393 /**
394 * The id of peer 2 394 * The id of peer 2
395 */ 395 */
396 uint32_t peer2; 396 uint32_t peer2;
397 397
398 /** 398 /**
399 * Id of the host where peer2 is running 399 * Id of the host where peer2 is running
400 */ 400 */
@@ -447,11 +447,12 @@ struct RegisteredHostContext
447 * Tail of the ForwardedOverlayConnectContext DLL 447 * Tail of the ForwardedOverlayConnectContext DLL
448 */ 448 */
449 struct ForwardedOverlayConnectContext *focc_dll_tail; 449 struct ForwardedOverlayConnectContext *focc_dll_tail;
450 450
451 /** 451 /**
452 * Enumeration of states for this context 452 * Enumeration of states for this context
453 */ 453 */
454 enum RHCState { 454 enum RHCState
455 {
455 456
456 /** 457 /**
457 * The initial state 458 * The initial state
@@ -473,7 +474,6 @@ struct RegisteredHostContext
473 * State where we attempt to do the overlay connection again 474 * State where we attempt to do the overlay connection again
474 */ 475 */
475 RHC_OL_CONNECT 476 RHC_OL_CONNECT
476
477 } state; 477 } state;
478 478
479}; 479};
@@ -493,12 +493,12 @@ enum LCFContextState
493 * Delegated host has been registered at the forwarding controller 493 * Delegated host has been registered at the forwarding controller
494 */ 494 */
495 DELEGATED_HOST_REGISTERED, 495 DELEGATED_HOST_REGISTERED,
496 496
497 /** 497 /**
498 * The slave host has been registred at the forwarding controller 498 * The slave host has been registred at the forwarding controller
499 */ 499 */
500 SLAVE_HOST_REGISTERED, 500 SLAVE_HOST_REGISTERED,
501 501
502 /** 502 /**
503 * The context has been finished (may have error) 503 * The context has been finished (may have error)
504 */ 504 */
@@ -639,7 +639,7 @@ extern unsigned int GST_slave_list_size;
639 */ 639 */
640void 640void
641GST_queue_message (struct GNUNET_SERVER_Client *client, 641GST_queue_message (struct GNUNET_SERVER_Client *client,
642 struct GNUNET_MessageHeader *msg); 642 struct GNUNET_MessageHeader *msg);
643 643
644 644
645/** 645/**
@@ -669,7 +669,7 @@ GST_hello_cache_lookup (const struct GNUNET_PeerIdentity *id);
669 */ 669 */
670void 670void
671GST_hello_cache_add (const struct GNUNET_PeerIdentity *id, 671GST_hello_cache_add (const struct GNUNET_PeerIdentity *id,
672 const struct GNUNET_MessageHeader *hello); 672 const struct GNUNET_MessageHeader *hello);
673 673
674 674
675/** 675/**
@@ -709,23 +709,22 @@ GST_find_dest_route (uint32_t host_id);
709 */ 709 */
710void 710void
711GST_handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client, 711GST_handle_overlay_connect (void *cls, struct GNUNET_SERVER_Client *client,
712 const struct GNUNET_MessageHeader *message); 712 const struct GNUNET_MessageHeader *message);
713 713
714 714
715/** 715/**
716 * Adds a host registration's request to a slave's registration queue 716 * Adds a host registration's request to a slave's registration queue
717 * 717 *
718 * @param slave the slave controller at which the given host has to be 718 * @param slave the slave controller at which the given host has to be
719 * registered 719 * registered
720 * @param cb the host registration completion callback 720 * @param cb the host registration completion callback
721 * @param cb_cls the closure for the host registration completion callback 721 * @param cb_cls the closure for the host registration completion callback
722 * @param host the host which has to be registered 722 * @param host the host which has to be registered
723 */ 723 */
724void 724void
725GST_queue_host_registration (struct Slave *slave, 725GST_queue_host_registration (struct Slave *slave,
726 GNUNET_TESTBED_HostRegistrationCompletion cb, 726 GNUNET_TESTBED_HostRegistrationCompletion cb,
727 void *cb_cls, 727 void *cb_cls, struct GNUNET_TESTBED_Host *host);
728 struct GNUNET_TESTBED_Host *host);
729 728
730 729
731/** 730/**
@@ -736,7 +735,7 @@ GST_queue_host_registration (struct Slave *slave,
736 */ 735 */
737void 736void
738GST_forwarded_operation_reply_relay (void *cls, 737GST_forwarded_operation_reply_relay (void *cls,
739 const struct GNUNET_MessageHeader *msg); 738 const struct GNUNET_MessageHeader *msg);
740 739
741 740
742/** 741/**
@@ -747,7 +746,7 @@ GST_forwarded_operation_reply_relay (void *cls,
747 */ 746 */
748void 747void
749GST_forwarded_operation_timeout (void *cls, 748GST_forwarded_operation_timeout (void *cls,
750 const struct GNUNET_SCHEDULER_TaskContext *tc); 749 const struct GNUNET_SCHEDULER_TaskContext *tc);
751 750
752 751
753/** 752/**
@@ -759,7 +758,7 @@ GST_forwarded_operation_timeout (void *cls,
759 */ 758 */
760void 759void
761GST_send_operation_fail_msg (struct GNUNET_SERVER_Client *client, 760GST_send_operation_fail_msg (struct GNUNET_SERVER_Client *client,
762 uint64_t operation_id, const char *emsg); 761 uint64_t operation_id, const char *emsg);
763 762
764 763
765/** 764/**
@@ -771,9 +770,8 @@ GST_send_operation_fail_msg (struct GNUNET_SERVER_Client *client,
771 */ 770 */
772void 771void
773GST_handle_overlay_request_connect (void *cls, 772GST_handle_overlay_request_connect (void *cls,
774 struct GNUNET_SERVER_Client *client, 773 struct GNUNET_SERVER_Client *client,
775 const struct GNUNET_MessageHeader 774 const struct GNUNET_MessageHeader *message);
776 *message);
777 775
778 776
779/** 777/**