Boston, MA 02111-1307, USA.
*/
/**
- * @file gnunet-gns.c
+ * @file gnunet-namestore.c
* @brief command line tool to manipulate the local zone
* @author Christian Grothoff
*
* - test
* - parsing SOA, PTR and MX value specifications (and define format!)
* - add options to list/lookup individual records
- * - add option to shorten name (lookup PKEY, then lookup name by zone,
- * then possibly lookup PSEU for the zone and update our zone)
*/
#include "platform.h"
#include <gnunet_util_lib.h>
* or the expiration time of the block in the namestore (even if there are zero
* records matching the desired record type)
* @param name name that is being mapped (at most 255 characters long)
- * @param rd_count number of entries in 'rd' array
+ * @param rd_len number of entries in 'rd' array
* @param rd array of records with data to store
* @param signature signature of the record block, NULL if signature is unavailable (i.e.
* because the user queried for a particular record type only)
data = &value_aaaa;
data_size = sizeof (value_aaaa);
break;
- case GNUNET_GNS_TYPE_PKEY:
+ case GNUNET_NAMESTORE_TYPE_PKEY:
fprintf (stderr, _("Record type `%s' not implemented yet\n"), typestring);
GNUNET_SCHEDULER_shutdown ();
return;
- case GNUNET_GNS_TYPE_PSEU:
+ case GNUNET_NAMESTORE_TYPE_PSEU:
data = value;
data_size = strlen (value);
break;
/**
- * The main function for gnunet-gns.
+ * The main function for gnunet-namestore.
*
* @param argc number of arguments from the command line
* @param argv command line arguments
int ret;
- GNUNET_log_setup ("gnunet-gns", "WARNING", NULL);
+ GNUNET_log_setup ("gnunet-namestore", "WARNING", NULL);
ret =
(GNUNET_OK ==
- GNUNET_PROGRAM_run (argc, argv, "gnunet-gns",
- _("GNUnet GNS zone manipulation tool"),
+ GNUNET_PROGRAM_run (argc, argv, "gnunet-namestore",
+ _("GNUnet zone manipulation tool"),
options,
&run, NULL)) ? 0 : 1;
return ret;
}
-/* end of gnunet-gns.c */
+/* end of gnunet-namestore.c */