carta
getdns_dict_create_with_memory_functions(3)

getdns_dict_create_with_memory_functions3

Usage

getdns_dict *

getdns_dict_create ()

getdns_dict *

getdns_dict_create_with_extended_memory_functions

getdns_dict *

getdns_dict_create_with_memory_functions

void

getdns_dict_destroy (getdns_dict *this_dict)

Library

DNS Resolver library (libgetdns, -lgetdns)

Overview

The getdns_dict type is used to manage name/value pairs in which the names are strings and the data types of the values are heterogeneous and include

getdns_bindata
getdns_dict
getdns_list
uint32_t

The destroy function performs a "deep" destroy, freeing storage for all of the members of the dictionary before destroying the dictionary. There are a number of helper functions that provide access to the dictionary object, see their respective man pages.

userarg pass this argument to the user specified memory management functions for operations on lists created using extended memory functions

this_dict the dictionary to destroy

Return values

Upon successful completion the getdns_dict_create function returns a valid (empty) dictionary structure that should be freed via a call to getdns_dict_destroy. If a parameter in invalid or in the event of some error getdns_dict_create returns NULL.

Examples

TBD

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie) to Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)

From getdns 1.7.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.