gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r25901 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r25901 - gnunet/src/testbed
Date: Fri, 25 Jan 2013 15:40:32 +0100

Author: harsha
Date: 2013-01-25 15:40:32 +0100 (Fri, 25 Jan 2013)
New Revision: 25901

Modified:
   gnunet/src/testbed/gnunet-service-testbed.c
Log:
- rearrange

Modified: gnunet/src/testbed/gnunet-service-testbed.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed.c 2013-01-25 14:32:37 UTC (rev 
25900)
+++ gnunet/src/testbed/gnunet-service-testbed.c 2013-01-25 14:40:32 UTC (rev 
25901)
@@ -29,7 +29,66 @@
 #include <zlib.h>
 
 
+/***********/
+/* Globals */
+/***********/
+
 /**
+ * Our configuration
+ */
+struct GNUNET_CONFIGURATION_Handle *our_config;
+
+/**
+ * The master context; generated with the first INIT message
+ */
+struct Context *GST_context;
+
+/**
+ * A list of directly linked neighbours
+ */
+struct Slave **GST_slave_list;
+
+/**
+ * A list of peers we know about
+ */
+struct Peer **GST_peer_list;
+
+/**
+ * Array of hosts
+ */
+struct GNUNET_TESTBED_Host **GST_host_list;
+
+/**
+ * DLL head for forwarded operation contexts
+ */
+struct ForwardedOperationContext *fopcq_head;
+
+/**
+ * DLL tail for forwarded operation contexts
+ */
+struct ForwardedOperationContext *fopcq_tail;
+
+/**
+ * The size of the host list
+ */
+unsigned int GST_host_list_size;
+
+/**
+ * The size of directly linked neighbours list
+ */
+unsigned int GST_slave_list_size;
+
+/**
+ * The size of the peer list
+ */
+unsigned int GST_peer_list_size;
+
+
+/***********************************/
+/* Local definitions and variables */
+/***********************************/
+
+/**
  * The message queue for sending messages to clients
  */
 struct MessageQueue
@@ -55,36 +114,16 @@
   struct MessageQueue *prev;
 };
 
-
 /**
- * The master context; generated with the first INIT message
- */
-struct Context *GST_context;
-
-/**
  * Our hostname; we give this to all the peers we start
  */
 static char *hostname;
 
-
-/***********/
-/* Handles */
-/***********/
-
 /**
- * Our configuration
- */
-struct GNUNET_CONFIGURATION_Handle *our_config;
-
-/**
  * Current Transmit Handle; NULL if no notify transmit exists currently
  */
 static struct GNUNET_SERVER_TransmitHandle *transmit_handle;
 
-/****************/
-/* Lists & Maps */
-/****************/
-
 /**
  * The head for the LCF queue
  */
@@ -106,70 +145,26 @@
 static struct MessageQueue *mq_tail;
 
 /**
- * DLL head for forwarded operation contexts
+ * The hashmap of shared services
  */
-struct ForwardedOperationContext *fopcq_head;
+static struct GNUNET_CONTAINER_MultiHashMap *ss_map;
 
 /**
- * DLL tail for forwarded operation contexts
- */
-struct ForwardedOperationContext *fopcq_tail;
-
-/**
- * Array of hosts
- */
-struct GNUNET_TESTBED_Host **GST_host_list;
-
-/**
  * A list of routes
  */
 static struct Route **route_list;
 
 /**
- * A list of directly linked neighbours
- */
-struct Slave **GST_slave_list;
-
-/**
- * A list of peers we know about
- */
-struct Peer **GST_peer_list;
-
-/**
- * The hashmap of shared services
- */
-static struct GNUNET_CONTAINER_MultiHashMap *ss_map;
-
-/**
  * The event mask for the events we listen from sub-controllers
  */
 static uint64_t event_mask;
 
 /**
- * The size of the host list
- */
-unsigned int GST_host_list_size;
-
-/**
  * The size of the route list
  */
 static unsigned int route_list_size;
 
 /**
- * The size of directly linked neighbours list
- */
-unsigned int GST_slave_list_size;
-
-/**
- * The size of the peer list
- */
-unsigned int GST_peer_list_size;
-
-/*********/
-/* Tasks */
-/*********/
-
-/**
  * The lcf_task handle
  */
 static GNUNET_SCHEDULER_TaskIdentifier lcf_proc_task_id;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]