gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r20728 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r20728 - gnunet/src/gns
Date: Fri, 23 Mar 2012 16:59:56 +0100

Author: schanzen
Date: 2012-03-23 16:59:56 +0100 (Fri, 23 Mar 2012)
New Revision: 20728

Modified:
   gnunet/src/gns/gns_api.c
   gnunet/src/gns/gnunet-service-gns_interceptor.c
   gnunet/src/gns/gnunet-service-gns_resolver.c
   gnunet/src/gns/gnunet-service-gns_resolver.h
Log:
-doxygen


Modified: gnunet/src/gns/gns_api.c
===================================================================
--- gnunet/src/gns/gns_api.c    2012-03-23 15:58:58 UTC (rev 20727)
+++ gnunet/src/gns/gns_api.c    2012-03-23 15:59:56 UTC (rev 20728)
@@ -605,18 +605,18 @@
 /**
  * Shutdown connection with the GNS service.
  *
- * @param h handle of the GNS connection to stop
+ * @param handle handle of the GNS connection to stop
  */
 void
-GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *h)
+GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle)
 {
-  GNUNET_CLIENT_disconnect (h->client, GNUNET_NO);
-  if (GNUNET_SCHEDULER_NO_TASK != h->reconnect_task)
+  GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO);
+  if (GNUNET_SCHEDULER_NO_TASK != handle->reconnect_task)
   {
-    GNUNET_SCHEDULER_cancel (h->reconnect_task);
-    h->reconnect_task = GNUNET_SCHEDULER_NO_TASK;
+    GNUNET_SCHEDULER_cancel (handle->reconnect_task);
+    handle->reconnect_task = GNUNET_SCHEDULER_NO_TASK;
   }
-  GNUNET_free(h);
+  GNUNET_free(handle);
   /* disco from GNS */
 }
 
@@ -639,9 +639,10 @@
  *
  * @param handle handle to the GNS service
  * @param name the name to look up
- * @param iter function to call on each result
- * @param iter_cls closure for iter
- * @return handle to stop the async get
+ * @param type the record type to look up
+ * @param proc processor to call on result
+ * @param proc_cls closure for processor
+ * @return handle to the get
  */
 struct GNUNET_GNS_QueueEntry *
 GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,

Modified: gnunet/src/gns/gnunet-service-gns_interceptor.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns_interceptor.c     2012-03-23 15:58:58 UTC 
(rev 20727)
+++ gnunet/src/gns/gnunet-service-gns_interceptor.c     2012-03-23 15:59:56 UTC 
(rev 20728)
@@ -331,7 +331,7 @@
  * Initialized the interceptor
  *
  * @param zone the zone to work in
- * @param the prov key of the zone (can be null, needed for caching)
+ * @param key the prov key of the zone (can be null, needed for caching)
  * @param c the configuration
  * @return GNUNET_OK on success
  */

Modified: gnunet/src/gns/gnunet-service-gns_resolver.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns_resolver.c        2012-03-23 15:58:58 UTC 
(rev 20727)
+++ gnunet/src/gns/gnunet-service-gns_resolver.c        2012-03-23 15:59:56 UTC 
(rev 20728)
@@ -358,7 +358,7 @@
  * @param name the name given by delegation
  * @param zone the authority
  * @param our_zone our local zone
- * @param the private key of our authority
+ * @param key the private key of our authority
  */
 static void process_discovered_authority(char* name,
                                     struct GNUNET_CRYPTO_ShortHashCode zone,
@@ -394,6 +394,7 @@
  * @param nh the namestore handle
  * @param dh the dht handle
  * @param lz the local zone's hash
+ * @param max_bg_queries maximum number of parallel background queries in dht
  * @return GNUNET_OK on success
  */
 int
@@ -2196,13 +2197,13 @@
  * @param zone the zone to use
  * @param name the name to shorten
  * @param proc the processor to call with result
- * @param cls closure to pass to proc
+ * @param proc_cls closure to pass to proc
  */
 void
 gns_resolver_shorten_name(struct GNUNET_CRYPTO_ShortHashCode zone,
                           const char* name,
                           ShortenResultProcessor proc,
-                          void* cls)
+                          void* proc_cls)
 {
   struct ResolverHandle *rh;
   struct NameShortenHandle *nsh;
@@ -2215,7 +2216,7 @@
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "%s is canonical. Returning verbatim\n", name);
-    proc(cls, name);
+    proc(proc_cls, name);
     return;
   }
 
@@ -2223,7 +2224,7 @@
   
 
   nsh->proc = proc;
-  nsh->proc_cls = cls;
+  nsh->proc_cls = proc_cls;
   
   rh = GNUNET_malloc(sizeof (struct ResolverHandle));
   rh->authority = zone;
@@ -2254,7 +2255,7 @@
                   "Cannot convert ZKEY %s to hash!\n", string_hash);
       GNUNET_free(rh);
       GNUNET_free(nsh);
-      proc(cls, name);
+      proc(proc_cls, name);
       return;
     }
 
@@ -2365,13 +2366,13 @@
  * @param zone the root zone to look up for
  * @param name the name to lookup up
  * @param proc the processor to call when finished
- * @param cls the closure to pass to the processor
+ * @param proc_cls the closure to pass to the processor
  */
 void
 gns_resolver_get_authority(struct GNUNET_CRYPTO_ShortHashCode zone,
                            const char* name,
                            GetAuthorityResultProcessor proc,
-                           void* cls)
+                           void* proc_cls)
 {
   struct ResolverHandle *rh;
   struct GetNameAuthorityHandle *nah;
@@ -2406,7 +2407,7 @@
   rh->proc_cls = (void*)nah;
 
   nah->proc = proc;
-  nah->proc_cls = cls;
+  nah->proc_cls = proc_cls;
 
   /* Start delegation resolution in our namestore */
   resolve_delegation_ns(rh);

Modified: gnunet/src/gns/gnunet-service-gns_resolver.h
===================================================================
--- gnunet/src/gns/gnunet-service-gns_resolver.h        2012-03-23 15:58:58 UTC 
(rev 20727)
+++ gnunet/src/gns/gnunet-service-gns_resolver.h        2012-03-23 15:59:56 UTC 
(rev 20728)
@@ -248,14 +248,14 @@
  *
  * @param nh handle to the namestore
  * @param dh handle to the dht
- * @param local_zone the local zone
+ * @param lz the local zone
  * @param max_bg_queries maximum amount of background queries
  * @returns GNUNET_OK on success
  */
 int
 gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh,
                   struct GNUNET_DHT_Handle *dh,
-                  struct GNUNET_CRYPTO_ShortHashCode local_zone,
+                  struct GNUNET_CRYPTO_ShortHashCode lz,
                   unsigned long long max_bg_queries);
 
 /**
@@ -297,13 +297,13 @@
  * @param zone the zone to perform the operation in
  * @param name name to shorten
  * @param proc the processor to call on shorten result
- * @param proc_cls teh closure to pass to proc
+ * @param proc_cls the closure to pass to proc
  */
 void
 gns_resolver_shorten_name(struct GNUNET_CRYPTO_ShortHashCode zone,
                           const char* name,
                           ShortenResultProcessor proc,
-                          void* cls);
+                          void* proc_cls);
 
 /**
  * Tries to resolve the authority for name
@@ -312,13 +312,13 @@
  * @param zone the root zone to look up for
  * @param name the name to lookup up
  * @param proc the processor to call when finished
- * @param cls the closure to pass to the processor
+ * @param proc_cls the closure to pass to the processor
  */
 void
 gns_resolver_get_authority(struct GNUNET_CRYPTO_ShortHashCode zone,
                            const char* name,
                            GetAuthorityResultProcessor proc,
-                           void* cls);
+                           void* proc_cls);
 
 /**
  * Generic function to check for TLDs




reply via email to

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