gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35218 - in gnunet/src: ats include


From: gnunet
Subject: [GNUnet-SVN] r35218 - in gnunet/src: ats include
Date: Wed, 11 Feb 2015 14:46:02 +0100

Author: grothoff
Date: 2015-02-11 14:46:02 +0100 (Wed, 11 Feb 2015)
New Revision: 35218

Modified:
   gnunet/src/ats/ats_api_scheduling.c
   gnunet/src/include/gnunet_ats_service.h
Log:
eliminate dead call from API

Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2015-02-11 13:42:22 UTC (rev 35217)
+++ gnunet/src/ats/ats_api_scheduling.c 2015-02-11 13:46:02 UTC (rev 35218)
@@ -462,7 +462,7 @@
 {
   struct GNUNET_ATS_SchedulingHandle *sh = cls;
 
-  LOG (GNUNET_ERROR_TYPE_WARNING,
+  LOG (GNUNET_ERROR_TYPE_ERROR,
        "ATS connection died (code %d), reconnecting\n",
        (int) error);
   force_reconnect (sh);
@@ -540,9 +540,11 @@
   struct GNUNET_ATS_AddressRecord *ar;
 
   GNUNET_assert (NULL == sh->client);
-  sh->client = GNUNET_CLIENT_connect ("ats", sh->cfg);
+  sh->client = GNUNET_CLIENT_connect ("ats",
+                                      sh->cfg);
   if (NULL == sh->client)
   {
+    GNUNET_break (0);
     force_reconnect (sh);
     return;
   }
@@ -633,29 +635,6 @@
 
 
 /**
- * Test if a address and a session is known to ATS
- *
- * @param sh the scheduling handle
- * @param address the address
- * @param session the session
- * @return #GNUNET_YES or #GNUNET_NO
- */
-int
-GNUNET_ATS_session_known (struct GNUNET_ATS_SchedulingHandle *sh,
-                          const struct GNUNET_HELLO_Address *address,
-                          struct Session *session)
-{
-  if (NULL == session)
-    return GNUNET_NO;
-  if (NOT_FOUND != find_session_id (sh,
-                                    session,
-                                    address))
-    return GNUNET_YES;  /* Exists */
-  return GNUNET_NO;
-}
-
-
-/**
  * We have a new address ATS should know. Addresses have to be added
  * with this function before they can be: updated, set in use and
  * destroyed.

Modified: gnunet/src/include/gnunet_ats_service.h
===================================================================
--- gnunet/src/include/gnunet_ats_service.h     2015-02-11 13:42:22 UTC (rev 
35217)
+++ gnunet/src/include/gnunet_ats_service.h     2015-02-11 13:46:02 UTC (rev 
35218)
@@ -379,20 +379,6 @@
 
 
 /**
- * Test if a address and a session is known to ATS.
- *
- * @param sh the scheduling handle
- * @param address the address
- * @param session the session
- * @return #GNUNET_YES or #GNUNET_NO
- */
-int
-GNUNET_ATS_session_known (struct GNUNET_ATS_SchedulingHandle *sh,
-                          const struct GNUNET_HELLO_Address *address,
-                          struct Session *session);
-
-
-/**
  * Handle used within ATS to track an address.
  */
 struct GNUNET_ATS_AddressRecord;
@@ -485,7 +471,9 @@
  * Signature of a function that is called with QoS information about an 
address.
  *
  * @param cls closure
- * @param address the address, NULL if ATS service was disconnected
+ * @param address the address, NULL if ATS service was disconnected or
+ *        when the iteration is completed in the case of
+ *        #GNUNET_ATS_performance_list_addresses()
  * @param address_active #GNUNET_YES if this address is actively used
  *        to maintain a connection to a peer;
  *        #GNUNET_NO if the address is not actively used;
@@ -524,7 +512,6 @@
                              void *addr_info_cb_cls);
 
 
-
 /**
  * Get information about addresses known to the ATS subsystem.
  *
@@ -535,7 +522,7 @@
  * @param infocb callback to call with the addresses,
  *        will callback with address == NULL when done
  * @param infocb_cls closure for @a infocb
- * @return ats performance context
+ * @return handle to abort the operation
  */
 struct GNUNET_ATS_AddressListHandle *
 GNUNET_ATS_performance_list_addresses (struct GNUNET_ATS_PerformanceHandle 
*handle,




reply via email to

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