GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GETDNS_LIST_GET (3)

NAME

getdns_list_get, getdns_list_get_bindata, getdns_list_get_data_type, getdns_list_get_dict, getdns_list_get_length, getdns_list_get_list, getdns_list_get_int -- get a value by index from a getdns list

CONTENTS

Library
Synopsis
Description
Examples
See Also

LIBRARY

DNS Resolver library (libgetdns, -lgetdns)

SYNOPSIS

#include <getdns.h>

getdns_return_t
getdns_list_get_bindata (getdns_list *this_list,

size_t index,
getdns_bindata **answer)

getdns_return_t
getdns_list_get_data_type (getdns_list *this_list,

size_t index,
getdns_data_type *answer)

getdns_return_t
getdns_list_get_dict (getdns_list *this_list,

size_t index,
getdns_dict **answer)

getdns_return_t
getdns_list_get_length (getdns_list *this_list,

size_t *answer)

getdns_return_t
getdns_list_get_list (getdns_list *this_list,

size_t index,
getdns_list **answer)

getdns_return_t
getdns_list_get_int (getdns_list *this_list,

size_t index,
uint32_t *answer)

DESCRIPTION

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

SEE ALSO

libgetdns(3), getdns_address(3), getdns_dict(3), getdns_general(3), getdns_hostname(3), getdns_service(3),

Search for    or go to Top of page |  Section 3 |  Main Index


getdns 0.9.0 GETDNS_LIST (3) December 2015

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.