Additional getdns_context_get functions

Functions

getdns_return_t getdns_context_get_resolution_type (getdns_context *context, getdns_resolution_t *value)
 
getdns_return_t getdns_context_get_namespaces (getdns_context *context, size_t *namespace_count, getdns_namespace_t **namespaces)
 
getdns_return_t getdns_context_get_dns_transport (getdns_context *context, getdns_transport_t *value)
 
getdns_return_t getdns_context_get_dns_transport_list (getdns_context *context, size_t *transport_count, getdns_transport_list_t **transports)
 
getdns_return_t getdns_context_get_limit_outstanding_queries (getdns_context *context, uint16_t *limit)
 
getdns_return_t getdns_context_get_timeout (getdns_context *context, uint64_t *timeout)
 
getdns_return_t getdns_context_get_idle_timeout (getdns_context *context, uint64_t *timeout)
 
getdns_return_t getdns_context_get_follow_redirects (getdns_context *context, getdns_redirects_t *value)
 
getdns_return_t getdns_context_get_dns_root_servers (getdns_context *context, getdns_list **addresses)
 
getdns_return_t getdns_context_get_append_name (getdns_context *context, getdns_append_name_t *value)
 
getdns_return_t getdns_context_get_suffix (getdns_context *context, getdns_list **value)
 
getdns_return_t getdns_context_get_dnssec_trust_anchors (getdns_context *context, getdns_list **value)
 
getdns_return_t getdns_context_get_dnssec_allowed_skew (getdns_context *context, uint32_t *value)
 
getdns_return_t getdns_context_get_upstream_recursive_servers (getdns_context *context, getdns_list **upstream_list)
 
getdns_return_t getdns_context_get_edns_maximum_udp_payload_size (getdns_context *context, uint16_t *value)
 
getdns_return_t getdns_context_get_edns_extended_rcode (getdns_context *context, uint8_t *value)
 
getdns_return_t getdns_context_get_edns_version (getdns_context *context, uint8_t *value)
 
getdns_return_t getdns_context_get_edns_do_bit (getdns_context *context, uint8_t *value)
 
getdns_return_t getdns_context_get_edns_client_subnet_private (getdns_context *context, uint8_t *value)
 
getdns_return_t getdns_context_get_tls_query_padding_blocksize (getdns_context *context, uint16_t *value)
 
getdns_return_t getdns_context_get_tls_authentication (getdns_context *context, getdns_tls_authentication_t *value)
 
getdns_return_t getdns_context_get_update_callback (getdns_context *context, void **userarg, void(**value)(getdns_context *, getdns_context_code_t, void *))
 
uint32_t getdns_context_get_num_pending_requests (getdns_context *context, struct timeval *next_timeout)
 

Detailed Description

Function Documentation

getdns_return_t getdns_context_get_resolution_type ( getdns_context context,
getdns_resolution_t value 
)

begin getters

getdns_return_t getdns_context_get_namespaces ( getdns_context context,
size_t *  namespace_count,
getdns_namespace_t **  namespaces 
)

users must call free on the resulting namespaces if not NULL

getdns_return_t getdns_context_get_dns_transport ( getdns_context context,
getdns_transport_t value 
)
getdns_return_t getdns_context_get_dns_transport_list ( getdns_context context,
size_t *  transport_count,
getdns_transport_list_t **  transports 
)
getdns_return_t getdns_context_get_limit_outstanding_queries ( getdns_context context,
uint16_t *  limit 
)
getdns_return_t getdns_context_get_timeout ( getdns_context context,
uint64_t *  timeout 
)
getdns_return_t getdns_context_get_idle_timeout ( getdns_context context,
uint64_t *  timeout 
)
getdns_return_t getdns_context_get_follow_redirects ( getdns_context context,
getdns_redirects_t value 
)
getdns_return_t getdns_context_get_dns_root_servers ( getdns_context context,
getdns_list **  addresses 
)
getdns_return_t getdns_context_get_append_name ( getdns_context context,
getdns_append_name_t value 
)
getdns_return_t getdns_context_get_suffix ( getdns_context context,
getdns_list **  value 
)
getdns_return_t getdns_context_get_dnssec_trust_anchors ( getdns_context context,
getdns_list **  value 
)
getdns_return_t getdns_context_get_dnssec_allowed_skew ( getdns_context context,
uint32_t *  value 
)
getdns_return_t getdns_context_get_upstream_recursive_servers ( getdns_context context,
getdns_list **  upstream_list 
)
getdns_return_t getdns_context_get_edns_maximum_udp_payload_size ( getdns_context context,
uint16_t *  value 
)
getdns_return_t getdns_context_get_edns_extended_rcode ( getdns_context context,
uint8_t *  value 
)
getdns_return_t getdns_context_get_edns_version ( getdns_context context,
uint8_t *  value 
)
getdns_return_t getdns_context_get_edns_do_bit ( getdns_context context,
uint8_t *  value 
)
getdns_return_t getdns_context_get_edns_client_subnet_private ( getdns_context context,
uint8_t *  value 
)
getdns_return_t getdns_context_get_tls_query_padding_blocksize ( getdns_context context,
uint16_t *  value 
)
getdns_return_t getdns_context_get_tls_authentication ( getdns_context context,
getdns_tls_authentication_t value 
)
getdns_return_t getdns_context_get_update_callback ( getdns_context context,
void **  userarg,
void(**)(getdns_context *, getdns_context_code_t, void *)  value 
)

Get the currently registered callback function and user defined argument for context changes. Combined with getdns_context_set_update_callback this can be used to "chain" context update callbacks and in this way create a subscription service catering multiple interested parties.

Parameters
contextThe context to monitor for changes
userargA user defined argument to be passed to the callback function.
valueThe callback function to be called on context value changes.
Returns
GETDNS_RETURN_GOOD on success or an error code on failure.
uint32_t getdns_context_get_num_pending_requests ( getdns_context context,
struct timeval *  next_timeout 
)