1ldns(3)                    Library Functions Manual                    ldns(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

85       The ldns team at NLnet Labs. Which consists out  of  Jelte  Jansen  and
86       Miek Gieben.
87
88

REPORTING BUGS

90       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our bugzilla at
91       http://www.nlnetlabs.nl/bugs/index.html
92
93
95       Copyright (c) 2004 - 2006 NLnet Labs.
96
97       Licensed under the BSD License. There is NO warranty; not even for MER‐
98       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
99
100

SEE ALSO

102       ldns_rdf.   And  perldoc  Net::DNS,  RFC1034, RFC1035, RFC4033, RFC4034
103       and RFC4035.
104

REMARKS

106       This manpage was automaticly generated from the ldns source code by use
107       of Doxygen and some perl.
108
109
110
111                                  30 May 2006                          ldns(3)
Impressum