diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-02-20 14:28:25 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-02-20 14:28:25 +0000 |
commit | 5fcf9d5393b0416ba91943c38f67cad242242d93 (patch) | |
tree | 749e08855263265612d0ac32e8db07e65823f628 /src/include/gnunet_gns_service.h | |
parent | fae59dd582474d41063b27c04ee64735ac71e3d3 (diff) | |
download | gnunet-5fcf9d5393b0416ba91943c38f67cad242242d93.tar.gz gnunet-5fcf9d5393b0416ba91943c38f67cad242242d93.zip |
namestore stub api added
fixes to namestore api
Diffstat (limited to 'src/include/gnunet_gns_service.h')
-rw-r--r-- | src/include/gnunet_gns_service.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/include/gnunet_gns_service.h b/src/include/gnunet_gns_service.h index 748aa9f4b..a1494a1f6 100644 --- a/src/include/gnunet_gns_service.h +++ b/src/include/gnunet_gns_service.h | |||
@@ -60,20 +60,28 @@ struct GNUNET_GNS_LookupHandle; | |||
60 | struct GNUNET_GNS_Record; | 60 | struct GNUNET_GNS_Record; |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Records types | 63 | * Record types |
64 | * Based on GNUNET_DNSPARSER_TYPEs (standard DNS) | ||
64 | */ | 65 | */ |
65 | enum GNUNET_GNS_RecordType | 66 | enum GNUNET_GNS_RecordType |
66 | { | 67 | { |
67 | // FIXME: should be based on GNUNET_DNSPARSER_TYPE's (standard DNS), | 68 | /* Standard DNS */ |
68 | // and then maybe our extensions in the area > 255? | 69 | GNUNET_GNS_RECORD_TYPE_A = 1, |
69 | GNUNET_GNS_RECORD_A, | 70 | GNUNET_GNS_RECORD_TYPE_NS = 2, |
70 | GNUNET_GNS_RECORD_AAAA, | 71 | GNUNET_GNS_RECORD_TYPE_CNAME = 5, |
71 | GNUNET_GNS_RECORD_MX, | 72 | GNUNET_GNS_RECORD_TYPE_SOA = 6, |
72 | GNUNET_GNS_RECORD_PKEY | 73 | GNUNET_GNS_RECORD_TYPE_PTR = 12, |
74 | GNUNET_GNS_RECORD_MX = 15, | ||
75 | GNUNET_GNS_RECORD_TXT = 16, | ||
76 | GNUNET_GNS_RECORD_AAAA = 28, | ||
77 | |||
78 | /* GNS specific */ | ||
79 | GNUNET_GNS_RECORD_PKEY = 256 | ||
73 | }; | 80 | }; |
74 | 81 | ||
75 | /** | 82 | /** |
76 | * Initialize the connection with the GNS service. | 83 | * Initialize the connection with the GNS service. |
84 | * FIXME: Do we need the ht_len? | ||
77 | * | 85 | * |
78 | * @param cfg configuration to use | 86 | * @param cfg configuration to use |
79 | * @param ht_len size of the internal hash table to use for parallel lookups | 87 | * @param ht_len size of the internal hash table to use for parallel lookups |
@@ -97,7 +105,7 @@ GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle); | |||
97 | 105 | ||
98 | /** | 106 | /** |
99 | * Iterator called on each result obtained for a GNS | 107 | * Iterator called on each result obtained for a GNS |
100 | * operation that expects a reply TODO: eh? | 108 | * lookup |
101 | * | 109 | * |
102 | * | 110 | * |
103 | * @param cls closure | 111 | * @param cls closure |