carta
getdns_list_get_int(3)

getdns_list_get_int3

Usage

getdns_return_t

getdns_list_get_bindata (getdns_list *this_list,

getdns_return_t

getdns_list_get_data_type (getdns_list *this_list,

getdns_return_t

getdns_list_get_dict (getdns_list *this_list,

getdns_return_t

getdns_list_get_length (getdns_list *this_list,

getdns_return_t

getdns_list_get_list (getdns_list *this_list,

getdns_return_t

getdns_list_get_int (getdns_list *this_list,

Library

DNS Resolver library (libgetdns, -lgetdns)

Overview

The getdns_list type is used to manage heterogeneous lists in which the objects are each one of the data types:

getdns_bindata
getdns_dict
getdns_list
uint32_t

this_list the list from which to retrieve the object

index the numeric index (0 based) of the item in the list you would like copied to answer

answer a copy of the object in the list is placed in answer, the caller is responsible for freeing the storage associated with that object by calling the appropriate destroy function.

Return values

Upon successful completion the functions return GETDNS_RETURN_GOOD , otherwise the following error values are returned:

GETDNS_RETURN_GENERIC_ERROR if this_list is not a valid list

GETDNS_RETURN_NO_SUCH_LIST_ITEM if index is out of range

GETDNS_RETURN_WRONG_TYPE_REQUESTED if the requested data type doesn't match the contents of the indexed argument

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.