aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-26 22:13:01 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-26 22:13:01 +0000
commit64d3e46cfb99a711e500fa1f114e7c44bdf10040 (patch)
tree83093d92761d5c1b8b2fded713adaa19af29274c /src/gns/gns.h
parentef6f05f63769263a5201636c4b7f71eaa455cdf3 (diff)
downloadgnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.tar.gz
gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.zip
-bugfixes, code cleanup
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r--src/gns/gns.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h
index 2f4ce3928..10119800d 100644
--- a/src/gns/gns.h
+++ b/src/gns/gns.h
@@ -27,14 +27,32 @@
27 27
28#include "gnunet_gns_service.h" 28#include "gnunet_gns_service.h"
29 29
30/**
31 * Name of the GADS TLD.
32 */
30#define GNUNET_GNS_TLD "gads" 33#define GNUNET_GNS_TLD "gads"
34
35/**
36 * Name of the zone key TLD.
37 */
31#define GNUNET_GNS_TLD_ZKEY "zkey" 38#define GNUNET_GNS_TLD_ZKEY "zkey"
39
40/**
41 * TLD name used to indicate relative names.
42 */
32#define GNUNET_GNS_TLD_PLUS "+" 43#define GNUNET_GNS_TLD_PLUS "+"
33#define GNUNET_GNS_DHT_MAX_UPDATE_INTERVAL 3600
34 44
45/**
46 * Maximum length of a label in DNS.
47 */
35#define MAX_DNS_LABEL_LENGTH 63 48#define MAX_DNS_LABEL_LENGTH 63
49
50/**
51 * Maximum length of a name in DNS.
52 */
36#define MAX_DNS_NAME_LENGTH 253 53#define MAX_DNS_NAME_LENGTH 253
37 54
55
38GNUNET_NETWORK_STRUCT_BEGIN 56GNUNET_NETWORK_STRUCT_BEGIN
39 57
40/** 58/**
@@ -43,7 +61,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
43struct GNUNET_GNS_ClientLookupMessage 61struct GNUNET_GNS_ClientLookupMessage
44{ 62{
45 /** 63 /**
46 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_LOOKUP 64 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_LOOKUP
47 */ 65 */
48 struct GNUNET_MessageHeader header; 66 struct GNUNET_MessageHeader header;
49 67
@@ -107,13 +125,14 @@ struct GNUNET_GNS_ClientLookupResultMessage
107 125
108}; 126};
109 127
128
110/** 129/**
111 * Message from client to GNS service to shorten names. 130 * Message from client to GNS service to shorten names.
112 */ 131 */
113struct GNUNET_GNS_ClientShortenMessage 132struct GNUNET_GNS_ClientShortenMessage
114{ 133{
115 /** 134 /**
116 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_SHORTEN 135 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_SHORTEN
117 */ 136 */
118 struct GNUNET_MessageHeader header; 137 struct GNUNET_MessageHeader header;
119 138
@@ -152,7 +171,7 @@ struct GNUNET_GNS_ClientShortenMessage
152struct GNUNET_GNS_ClientShortenResultMessage 171struct GNUNET_GNS_ClientShortenResultMessage
153{ 172{
154 /** 173 /**
155 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_SHORTEN_RESULT 174 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_SHORTEN_RESULT
156 */ 175 */
157 struct GNUNET_MessageHeader header; 176 struct GNUNET_MessageHeader header;
158 177
@@ -165,13 +184,14 @@ struct GNUNET_GNS_ClientShortenResultMessage
165 184
166}; 185};
167 186
187
168/** 188/**
169 * Message from client to GNS service to lookup an authority of a name. 189 * Message from client to GNS service to lookup an authority of a name.
170 */ 190 */
171struct GNUNET_GNS_ClientGetAuthMessage 191struct GNUNET_GNS_ClientGetAuthMessage
172{ 192{
173 /** 193 /**
174 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_GET_AUTH 194 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_GET_AUTH
175 */ 195 */
176 struct GNUNET_MessageHeader header; 196 struct GNUNET_MessageHeader header;
177 197
@@ -190,7 +210,7 @@ struct GNUNET_GNS_ClientGetAuthMessage
190struct GNUNET_GNS_ClientGetAuthResultMessage 210struct GNUNET_GNS_ClientGetAuthResultMessage
191{ 211{
192 /** 212 /**
193 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_GET_AUTH_RESULT 213 * Header of type GNUNET_MESSAGE_TYPE_GNS_CLIENT_GET_AUTH_RESULT
194 */ 214 */
195 struct GNUNET_MessageHeader header; 215 struct GNUNET_MessageHeader header;
196 216
@@ -202,6 +222,7 @@ struct GNUNET_GNS_ClientGetAuthResultMessage
202 /* followed by the authority part of the name or '\0' for no result*/ 222 /* followed by the authority part of the name or '\0' for no result*/
203 223
204}; 224};
225
205GNUNET_NETWORK_STRUCT_END 226GNUNET_NETWORK_STRUCT_END
206 227
207#endif 228#endif