1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
2
3
4

NAME

6       ldns_rdf_new,        ldns_rdf_new_frm_data,       ldns_rdf_new_frm_str,
7       ldns_rdf_new_frm_fp, ldns_rdf_free, ldns_rdf_deep_free, ldns_rdf_print
8
9

SYNOPSIS

11       #ifdef HAVE_STDINT_H
12       #include <stdint.h>
13       #endif /* HAVE_STDINT_H */
14
15       #ifdef HAVE_STDBOOL_H
16       #include <stdbool.h>
17       #endif /* HAVE_STDBOOL_H */
18
19       #include <ldns/ldns.h>
20
21       ldns_rdf* ldns_rdf_new(ldns_rdf_type type, size_t size, void *data);
22
23       ldns_rdf* ldns_rdf_new_frm_data(ldns_rdf_type type, size_t size,  const
24       void *data);
25
26       ldns_rdf * ldns_rdf_new_frm_str(ldns_rdf_type type, const char *str);
27
28       ldns_rdf * ldns_rdf_new_frm_fp(ldns_rdf_type type, FILE *fp);
29
30       void ldns_rdf_free(ldns_rdf *rd);
31
32       void ldns_rdf_deep_free(ldns_rdf *rd);
33
34       void ldns_rdf_print(FILE *output, ldns_rdf *rdf);
35

DESCRIPTION

37       ldns_rdf_new()  allocates a new rdf structure and fills it.  This func‐
38              tion DOES  NOT  copy  the  contents  from  the  buffer,  unlinke
39              ldns_rdf_new_frm_data()
40              type: type of the rdf
41              size: size of the buffer
42              data: pointer to the buffer to be copied
43              Returns the new rdf structure or NULL on failure
44
45       ldns_rdf_new_frm_data()  allocates  a  new  rdf structure and fills it.
46              This function _does_ copy the contents from the buffer,  unlinke
47              ldns_rdf_new()
48              type: type of the rdf
49              size: size of the buffer
50              data: pointer to the buffer to be copied
51              Returns the new rdf structure or NULL on failure
52
53       ldns_rdf_new_frm_str() creates a new rdf from a string.
54              type: type to use
55              str: string to use
56              Returns ldns_rdf*
57
58       ldns_rdf_new_frm_fp()  creates  a  new  rdf  from  a  file containing a
59              string.
60              type: type to use
61              fp: the file pointer  to use
62              Returns ldns_rdf*
63
64       ldns_rdf_free() frees a rdf structure, leaving the data pointer intact.
65              rd: the pointer to be freed
66              Returns void
67
68       ldns_rdf_deep_free() frees a rdf structure _and_ frees  the  data.  rdf
69              should be created with _new_frm_data
70              rd: the rdf structure to be freed
71              Returns void
72
73       ldns_rdf_print()  Prints  the data in the rdata field to the given file
74              stream (in presentation format)
75
76              output: the file stream to print to
77              rdf: the rdata field to print
78              Returns void
79

AUTHOR

81       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
82       Rozendaal and Miek Gieben.
83
84

REPORTING BUGS

86       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
87       http://www.nlnetlabs.nl/bugs/index.html
88
89       Be sure to select ldns as the product.
90
91
93       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
94       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
95       PARTICULAR PURPOSE.
96
97

SEE ALSO

99       ldns_rdf.  And perldoc Net::DNS,  RFC1043,  RFC1035,  RFC4033,  RFC4034
100       and RFC4035.
101

REMARKS

103       This manpage was automaticly generated from the ldns source code by use
104       of Doxygen and some perl.
105
106
107
108                                                             ldns(25 Apr 2005)
Impressum