aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-02-16 15:06:07 +0000
committerChristian Grothoff <christian@grothoff.org>2014-02-16 15:06:07 +0000
commit0876dfa34e4b78ca077e9219a1ec51b08ac9395b (patch)
tree8231fba943c1af1afe3d3bf5d2231a7936a53f48
parentfb60ff5399299f4fc59828b5c04081830c589bfd (diff)
downloadgnunet-0876dfa34e4b78ca077e9219a1ec51b08ac9395b.tar.gz
gnunet-0876dfa34e4b78ca077e9219a1ec51b08ac9395b.zip
-add a few comments
-rw-r--r--src/namestore/gnunet-service-namestore.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index 64c844d1c..7b020f5a1 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2012, 2013 Christian Grothoff (and other contributing authors) 3 (C) 2012, 2013, 2014 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -397,6 +397,17 @@ client_lookup (struct GNUNET_SERVER_Client *client)
397} 397}
398 398
399 399
400/**
401 * Function called with the records for the #GNUNET_GNS_MASTERZONE_STR
402 * label in the zone. Used to locate the #GNUNET_GNSRECORD_TYPE_NICK
403 * record, which (if found) is then copied to @a cls for future use.
404 *
405 * @param cls a `struct GNUNET_GNSRECORD_Data **` for storing the nick (if found)
406 * @param private_key the private key of the zone (unused)
407 * @param label should be #GNUNET_GNS_MASTERZONE_STR
408 * @param rd_count number of records in @a rd
409 * @param rd records stored under @a label in the zone
410 */
400static void 411static void
401lookup_nick_it (void *cls, 412lookup_nick_it (void *cls,
402 const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, 413 const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key,
@@ -430,6 +441,12 @@ lookup_nick_it (void *cls,
430} 441}
431 442
432 443
444/**
445 * Return the NICK record for the zone (if it exists).
446 *
447 * @param zone private key for the zone to look for nick
448 * @return NULL if no NICK record was found
449 */
433static struct GNUNET_GNSRECORD_Data * 450static struct GNUNET_GNSRECORD_Data *
434get_nick_record (const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone) 451get_nick_record (const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone)
435{ 452{
@@ -516,7 +533,7 @@ merge_with_nick_records ( const struct GNUNET_GNSRECORD_Data *nick_rd,
516 533
517 534
518/** 535/**
519 * Generate a 'struct LookupNameResponseMessage' and send it to the 536 * Generate a `struct LookupNameResponseMessage` and send it to the
520 * given client using the given notification context. 537 * given client using the given notification context.
521 * 538 *
522 * @param nc notification context to use 539 * @param nc notification context to use
@@ -720,6 +737,9 @@ refresh_block (struct GNUNET_SERVER_Client *client,
720} 737}
721 738
722 739
740/**
741 * Closure for #lookup_it().
742 */
723struct RecordLookupContext 743struct RecordLookupContext
724{ 744{
725 const char *label; 745 const char *label;