aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namestore_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-16 11:34:10 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-16 11:34:10 +0000
commitb6bfed8309e6b9b3286b8f608ad899bfb0a97205 (patch)
tree46cadaba7deadf7cb07dcc0b3d07f28fc147ffc2 /src/include/gnunet_namestore_service.h
parent5ad45d439b900ea388b93aca8547ad03c53ddc68 (diff)
downloadgnunet-b6bfed8309e6b9b3286b8f608ad899bfb0a97205.tar.gz
gnunet-b6bfed8309e6b9b3286b8f608ad899bfb0a97205.zip
-moving code to new libgnunetgnsrecord in preparation for addressing #3052
Diffstat (limited to 'src/include/gnunet_namestore_service.h')
-rw-r--r--src/include/gnunet_namestore_service.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/include/gnunet_namestore_service.h b/src/include/gnunet_namestore_service.h
index c31c3689b..55fdbef65 100644
--- a/src/include/gnunet_namestore_service.h
+++ b/src/include/gnunet_namestore_service.h
@@ -1,4 +1,3 @@
1
2/* 1/*
3 This file is part of GNUnet 2 This file is part of GNUnet
4 (C) 2012, 2013 Christian Grothoff (and other contributing authors) 3 (C) 2012, 2013 Christian Grothoff (and other contributing authors)
@@ -41,46 +40,6 @@ extern "C"
41#endif 40#endif
42#endif 41#endif
43 42
44/**
45 * Record type indicating any record/'*'
46 */
47#define GNUNET_NAMESTORE_TYPE_ANY 0
48
49/**
50 * Record type for GNS zone transfer ("PKEY").
51 */
52#define GNUNET_NAMESTORE_TYPE_PKEY 65536
53
54/**
55 * Record type for GNS zone transfer ("PSEU").
56 */
57#define GNUNET_NAMESTORE_TYPE_PSEU 65537
58
59/**
60 * Record type for GNS legacy hostnames ("LEHO").
61 */
62#define GNUNET_NAMESTORE_TYPE_LEHO 65538
63
64/**
65 * Record type for VPN resolution
66 */
67#define GNUNET_NAMESTORE_TYPE_VPN 65539
68
69/**
70 * Record type for delegation to DNS.
71 */
72#define GNUNET_NAMESTORE_TYPE_GNS2DNS 65540
73
74/**
75 * Record type for a social place.
76 */
77#define GNUNET_NAMESTORE_TYPE_PLACE 65541
78
79/**
80 * Record type for a phone (of CONVERSATION).
81 */
82#define GNUNET_NAMESTORE_TYPE_PHONE 65542
83
84 43
85/** 44/**
86 * Entry in the queue. 45 * Entry in the queue.
@@ -534,58 +493,6 @@ GNUNET_NAMESTORE_records_deserialize (size_t len,
534 493
535 494
536/** 495/**
537 * Convert the binary value @a data of a record of
538 * type @a type to a human-readable string.
539 *
540 * @param type type of the record
541 * @param data value in binary encoding
542 * @param data_size number of bytes in @a data
543 * @return NULL on error, otherwise human-readable representation of the value
544 */
545char *
546GNUNET_NAMESTORE_value_to_string (uint32_t type,
547 const void *data,
548 size_t data_size);
549
550
551/**
552 * Convert human-readable version of the value @a s of a record
553 * of type @a type to the respective binary representation.
554 *
555 * @param type type of the record
556 * @param s human-readable string
557 * @param data set to value in binary encoding (will be allocated)
558 * @param data_size set to number of bytes in @a data
559 * @return #GNUNET_OK on success
560 */
561int
562GNUNET_NAMESTORE_string_to_value (uint32_t type,
563 const char *s,
564 void **data,
565 size_t *data_size);
566
567
568/**
569 * Convert a type name (i.e. "AAAA") to the corresponding number.
570 *
571 * @param dns_typename name to convert
572 * @return corresponding number, UINT32_MAX on error
573 */
574uint32_t
575GNUNET_NAMESTORE_typename_to_number (const char *dns_typename);
576
577
578/**
579 * Convert a type number (i.e. 1) to the corresponding type string (i.e. "A")
580 *
581 * @param type number of a type to convert
582 * @return corresponding typestring, NULL on error
583 */
584const char *
585GNUNET_NAMESTORE_number_to_typename (uint32_t type);
586
587
588/**
589 * Test if a given record is expired. 496 * Test if a given record is expired.
590 * 497 *
591 * @param rd record to test 498 * @param rd record to test