gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r27071 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r27071 - gnunet/src/mesh
Date: Wed, 8 May 2013 18:50:57 +0200

Author: bartpolot
Date: 2013-05-08 18:50:57 +0200 (Wed, 08 May 2013)
New Revision: 27071

Modified:
   gnunet/src/mesh/gnunet-service-mesh-new.c
Log:
- remove regex client-side

Modified: gnunet/src/mesh/gnunet-service-mesh-new.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-new.c   2013-05-08 15:03:32 UTC (rev 
27070)
+++ gnunet/src/mesh/gnunet-service-mesh-new.c   2013-05-08 16:50:57 UTC (rev 
27071)
@@ -635,27 +635,7 @@
      * ID of the client, mainly for debug messages
      */
   unsigned int id;
-  
-    /**
-     * Regular expressions describing the services offered by this client.
-     */
-  struct MeshRegexDescriptor *regexes; // FIXME regex add timeout? API to 
remove a regex?
 
-    /**
-     * Number of regular expressions in regexes.
-     */
-  unsigned int n_regex;
-
-    /**
-     * Task to refresh all regular expresions in the DHT.
-     */
-  GNUNET_SCHEDULER_TaskIdentifier regex_announce_task;
-
-    /**
-     * Tmp store for partially retrieved regex.
-     */
-  char *partial_regex;
-
 };
 
 
@@ -5089,15 +5069,6 @@
 
     if (NULL != c->types)
       GNUNET_CONTAINER_multihashmap_destroy (c->types);
-    for (i = 0; i < c->n_regex; i++)
-    {
-      GNUNET_free (c->regexes[i].regex);
-      if (NULL != c->regexes[i].h)
-       GNUNET_REGEX_announce_cancel (c->regexes[i].h);
-    }
-    GNUNET_free_non_null (c->regexes);
-    if (GNUNET_SCHEDULER_NO_TASK != c->regex_announce_task)
-      GNUNET_SCHEDULER_cancel (c->regex_announce_task);
     next = c->next;
     GNUNET_CONTAINER_DLL_remove (clients, clients_tail, c);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "  CLIENT FREE at %p\n", c);




reply via email to

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