ldns_dnssec_rrsets_set_type(3)

ldns_dnssec_rrsets_set_type3

Functions for ldns_dnssec_rrsets

Usage

#include <stdint.h>
#include <stdbool.h>

#include <ldns/ldns.h>

ldns_dnssec_rrsets* ldns_dnssec_rrsets_new(void);

void ldns_dnssec_rrsets_free(ldns_dnssec_rrsets *rrsets);

ldns_rr_type ldns_dnssec_rrsets_type(const ldns_dnssec_rrsets *rrsets);

ldns_status ldns_dnssec_rrsets_set_type(ldns_dnssec_rrsets *rrsets, ldns_rr_type type);

ldns_status ldns_dnssec_rrsets_add_rr(ldns_dnssec_rrsets *rrsets, ldns_rr *rr);

void ldns_dnssec_rrsets_print(FILE *out, const ldns_dnssec_rrsets *rrsets, bool follow);

Overview

ldns_dnssec_rrsets_new() Creates a new list (entry) of RRsets .br Returns the newly allocated structure

ldns_dnssec_rrsets_free() Frees the list of rrsets and their rrs, but *not* the ldns_rr records in the sets

.br rrsets: the data structure to free

ldns_dnssec_rrsets_type() Returns the rr type of the rrset (that is head of the given list)

.br rrsets: the rrset to get the type of .br Returns the rr type

ldns_dnssec_rrsets_set_type() Sets the RR type of the rrset (that is head of the given list)

.br rrsets: the rrset to set the type of .br type: the type to set .br Returns LDNS_STATUS_OK on success

ldns_dnssec_rrsets_add_rr() Add an ldns_rr to the corresponding RRset in the given list of RRsets. If it is not present, add it as a new RRset with 1 record.

.br rrsets: the list of rrsets to add the RR to .br rr: the rr to add to the list of rrsets .br Returns LDNS_STATUS_OK on success and LDNS_STATUS_EQUAL_ERR when and RR with equal ownername, class, type and rdata already exists.

ldns_dnssec_rrsets_print() Print the given list of rrsets to the given file descriptor

.br out: the file descriptor to print to .br rrsets: the list of RRsets to print .br follow: if set to false, only print the first RRset

Remarks

This manpage was automatically generated from the ldns source code.

Releases

10 releases since Debian 5.0 (Lenny); the text changed 7 times.

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9–10
  5. 11
  6. 12
  7. 13
  8. Arch

Author

The ldns team at NLnet Labs.

Reporting bugs

Please report bugs to [email protected] or on GitHub at https://github.com/NLnetLabs/ldns/issues

From ldns 1.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.