aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-18 09:46:13 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-18 09:46:13 +0000
commit913d8769fe154d58be01f0f303b708850277edb5 (patch)
treeb8f990bfdad39c52e23940aab4fbe72c1f79ec9e /src
parente2df1bd810956194018d233f1029207838c92946 (diff)
downloadgnunet-913d8769fe154d58be01f0f303b708850277edb5.tar.gz
gnunet-913d8769fe154d58be01f0f303b708850277edb5.zip
-clarify API
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_dnsparser_lib.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h
index 19148bd3d..f460bbad4 100644
--- a/src/include/gnunet_dnsparser_lib.h
+++ b/src/include/gnunet_dnsparser_lib.h
@@ -197,6 +197,10 @@ struct GNUNET_DNSPARSER_Query
197 197
198 /** 198 /**
199 * Name of the record that the query is for (0-terminated). 199 * Name of the record that the query is for (0-terminated).
200 * In UTF-8 format. The library will convert from and to DNS-IDNA
201 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
202 * individual label is well-formed. If a given name is not well-formed,
203 * creating the DNS packet will fail.
200 */ 204 */
201 char *name; 205 char *name;
202 206
@@ -226,6 +230,10 @@ struct GNUNET_DNSPARSER_MxRecord
226 230
227 /** 231 /**
228 * Name of the mail server. 232 * Name of the mail server.
233 * In UTF-8 format. The library will convert from and to DNS-IDNA
234 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
235 * individual label is well-formed. If a given name is not well-formed,
236 * creating the DNS packet will fail.
229 */ 237 */
230 char *mxhost; 238 char *mxhost;
231 239
@@ -249,6 +257,10 @@ struct GNUNET_DNSPARSER_SrvRecord
249 /** 257 /**
250 * Service name without the underscore (!). Note that RFC 6335 clarifies the 258 * Service name without the underscore (!). Note that RFC 6335 clarifies the
251 * set of legal characters for service names. 259 * set of legal characters for service names.
260 * In UTF-8 format. The library will convert from and to DNS-IDNA
261 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
262 * individual label is well-formed. If a given name is not well-formed,
263 * creating the DNS packet will fail.
252 */ 264 */
253 char *service; 265 char *service;
254 266
@@ -260,11 +272,19 @@ struct GNUNET_DNSPARSER_SrvRecord
260 272
261 /** 273 /**
262 * Domain name for which the record is valid 274 * Domain name for which the record is valid
275 * In UTF-8 format. The library will convert from and to DNS-IDNA
276 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
277 * individual label is well-formed. If a given name is not well-formed,
278 * creating the DNS packet will fail.
263 */ 279 */
264 char *domain_name; 280 char *domain_name;
265 281
266 /** 282 /**
267 * Hostname offering the service. 283 * Hostname offering the service.
284 * In UTF-8 format. The library will convert from and to DNS-IDNA
285 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
286 * individual label is well-formed. If a given name is not well-formed,
287 * creating the DNS packet will fail.
268 */ 288 */
269 char *target; 289 char *target;
270 290
@@ -299,12 +319,20 @@ struct GNUNET_DNSPARSER_SoaRecord
299 /** 319 /**
300 *The domainname of the name server that was the 320 *The domainname of the name server that was the
301 * original or primary source of data for this zone. 321 * original or primary source of data for this zone.
322 * In UTF-8 format. The library will convert from and to DNS-IDNA
323 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
324 * individual label is well-formed. If a given name is not well-formed,
325 * creating the DNS packet will fail.
302 */ 326 */
303 char *mname; 327 char *mname;
304 328
305 /** 329 /**
306 * A domainname which specifies the mailbox of the 330 * A domainname which specifies the mailbox of the
307 * person responsible for this zone. 331 * person responsible for this zone.
332 * In UTF-8 format. The library will convert from and to DNS-IDNA
333 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
334 * individual label is well-formed. If a given name is not well-formed,
335 * creating the DNS packet will fail.
308 */ 336 */
309 char *rname; 337 char *rname;
310 338
@@ -365,6 +393,10 @@ struct GNUNET_DNSPARSER_Record
365 393
366 /** 394 /**
367 * Name of the record that the query is for (0-terminated). 395 * Name of the record that the query is for (0-terminated).
396 * In UTF-8 format. The library will convert from and to DNS-IDNA
397 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
398 * individual label is well-formed. If a given name is not well-formed,
399 * creating the DNS packet will fail.
368 */ 400 */
369 char *name; 401 char *name;
370 402
@@ -376,6 +408,10 @@ struct GNUNET_DNSPARSER_Record
376 408
377 /** 409 /**
378 * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname. 410 * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname.
411 * In UTF-8 format. The library will convert from and to DNS-IDNA
412 * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an
413 * individual label is well-formed. If a given name is not well-formed,
414 * creating the DNS packet will fail.
379 */ 415 */
380 char *hostname; 416 char *hostname;
381 417