gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33668 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r33668 - gnunet/src/ats
Date: Mon, 16 Jun 2014 10:26:44 +0200

Author: grothoff
Date: 2014-06-16 10:26:44 +0200 (Mon, 16 Jun 2014)
New Revision: 33668

Modified:
   gnunet/src/ats/gnunet-service-ats.c
Log:
doxygen, make local symbol static

Modified: gnunet/src/ats/gnunet-service-ats.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats.c 2014-06-16 08:23:46 UTC (rev 33667)
+++ gnunet/src/ats/gnunet-service-ats.c 2014-06-16 08:26:44 UTC (rev 33668)
@@ -39,10 +39,17 @@
  */
 struct GNUNET_STATISTICS_Handle *GSA_stats;
 
+/**
+ * Handle to the ATS server.
+ */
 static struct GNUNET_SERVER_Handle *GSA_server;
 
-struct GAS_Addresses_Handle *GSA_addresses;
+/**
+ * Handle to the address state.
+ */
+static struct GAS_Addresses_Handle *GSA_addresses;
 
+
 /**
  * We have received a `struct ClientStartMessage` from a client.  Find out 
which
  * type of client it is and notify the respective subsystem.
@@ -58,7 +65,10 @@
   const struct ClientStartMessage *msg =
       (const struct ClientStartMessage *) message;
   enum StartFlag flag;
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' message\n", "ATS_START");
+
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Received `%s' message\n",
+              "ATS_START");
   flag = ntohl (msg->start_flag);
   switch (flag)
   {
@@ -92,7 +102,8 @@
  * @param client handle of the client
  */
 static void
-client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client)
+client_disconnect_handler (void *cls,
+                           struct GNUNET_SERVER_Client *client)
 {
   if (NULL == client)
     return;
@@ -108,13 +119,16 @@
  * @param tc unused
  */
 static void
-cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+cleanup_task (void *cls,
+              const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   GAS_addresses_done (GSA_addresses);
   GAS_scheduling_done ();
   GAS_performance_done ();
   GAS_reservations_done ();
-  GNUNET_SERVER_disconnect_notify_cancel (GSA_server, 
&client_disconnect_handler, NULL);
+  GNUNET_SERVER_disconnect_notify_cancel (GSA_server,
+                                          &client_disconnect_handler,
+                                          NULL);
   if (NULL != GSA_stats)
   {
     GNUNET_STATISTICS_destroy (GSA_stats, GNUNET_NO);
@@ -191,7 +205,8 @@
 main (int argc, char *const *argv)
 {
   return (GNUNET_OK ==
-          GNUNET_SERVICE_run (argc, argv, "ats", GNUNET_SERVICE_OPTION_NONE,
+          GNUNET_SERVICE_run (argc, argv, "ats",
+                              GNUNET_SERVICE_OPTION_NONE,
                               &run, NULL)) ? 0 : 1;
 }
 




reply via email to

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