doc: gnunet-c-tutorial: Add nodes.
[oweals/gnunet.git] / src / gnsrecord / gnsrecord.c
index 0993e7aba055e95342ff7ddb9a37f43d564cfe69..35005b5ca826354cac6c2deffe7d78820d8030fb 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009-2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009-2013 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -211,6 +211,9 @@ GNUNET_GNSRECORD_typename_to_number (const char *dns_typename)
   struct Plugin *plugin;
   uint32_t ret;
 
+  if (0 == strcasecmp (dns_typename,
+                       "ANY"))
+    return GNUNET_GNSRECORD_TYPE_ANY;
   init ();
   for (i = 0; i < num_plugins; i++)
   {
@@ -236,6 +239,8 @@ GNUNET_GNSRECORD_number_to_typename (uint32_t type)
   struct Plugin *plugin;
   const char * ret;
 
+  if (GNUNET_GNSRECORD_TYPE_ANY == type)
+    return "ANY";
   init ();
   for (i = 0; i < num_plugins; i++)
   {