getdns_list_set - Man Page

set a value by index from a getdns list

Library

DNS Resolver library (libgetdns, -lgetdns)

Synopsis

#include <getdns.h>
getdns_return_t
getdns_list_set_bindata (getdns_list *this_list,

size_t index,
getdns_bindata *child_bindata)

getdns_return_t
getdns_list_set_dict (getdns_list *this_list,

size_t index,
getdns_dict *child_dict)

getdns_return_t
getdns_list_set_int (getdns_list *this_list,

size_t index,
uint32_t child_uint32_t)

getdns_return_t
getdns_list_set_list (getdns_list *this_list,

size_t index,
getdns_list *child_list)

Description

The getdns_list type is used to manage a heterogeneous indexed list of values that include:

getdns_bindata
getdns_dict
getdns_list
uint32_t

this_list the list in which to add/update the indexed item

index the index whose associated value is to be set.  If the index exists in the list the value associated with that index is replaced, if the index does not exist in the  list a new item is added to the list at the specified index.

child_bindata child_dict child_list child_uint32 value to assign the indexed element

Return Values

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

GETDNS_RETURN_NO_SUCH_LIST_ITEM if the index is out of range

GETDNS_RETURN_GENERIC_ERROR if this_list is not a valid list

Examples

TBD

See Also

libgetdns(3), getdns_address(3), getdns_list(3), getdns_list_get(3), getdns_general(3), getdns_hostname(3), getdns_service(3),

Referenced By

getdns_list(3).

The man pages getdns_list_set_bindata(3), getdns_list_set_dict(3), getdns_list_set_int(3) and getdns_list_set_list(3) are aliases of getdns_list_set(3).

December 2015 getdns 1.7.3