#include <ldns/ldns.h>
const ldns_rr_descriptor* ldns_rr_descript(uint16_t type);
size_t ldns_rr_descriptor_minimum(const ldns_rr_descriptor *descriptor);
size_t ldns_rr_descriptor_maximum(const ldns_rr_descriptor *descriptor);
ldns_rdf_type ldns_rr_descriptor_field_type(const ldns_rr_descriptor *descriptor, size_t field);
This structure contains, for all rr types, the rdata fields that are defined.
struct ldns_struct_rr_descriptor
{
Type of the RR that is described here:
ldns_rr_type _type;
Textual name of the RR type.:
const char *_name;
Minimum number of rdata fields in the RRs of this type.:
uint8_t _minimum;
Maximum number of rdata fields in the RRs of this type.:
uint8_t _maximum;
Wireformat specification for the rr, i.e. the types of rdata fields in their respective order.:
const ldns_rdf_type *_wireformat;
Special rdf types:
ldns_rdf_type _variable;
Specifies whether compression can be used for dnames in this RR type.:
ldns_rr_compress _compress;
The number of DNAMEs in the _wireformat string, for parsing.:
uint8_t _dname_count;
};
typedef struct ldns_struct_rr_descriptor ldns_rr_descriptor;
.br type: the type value of the rr type .br Returns the ldns_rr_descriptor for this type
.br descriptor: for an rr type .br Returns the minimum number of rdata fields
.br descriptor: for an rr type .br Returns the maximum number of rdata fields
.br descriptor: for an rr type .br field: the field number .br Returns the rdf type for the field
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.