Additional getdns_context_set functions

Functions

getdns_return_t getdns_context_set_update_callback (getdns_context *context, void *userarg, void(*value)(getdns_context *, getdns_context_code_t, void *))
 
getdns_return_t getdns_context_set_return_dnssec_status (getdns_context *context, int enabled)
 
getdns_return_t getdns_context_set_use_threads (getdns_context *context, int use_threads)
 
getdns_return_t getdns_context_set_tls_authentication (getdns_context *context, getdns_tls_authentication_t value)
 
getdns_return_t getdns_context_set_edns_client_subnet_private (getdns_context *context, uint8_t value)
 
getdns_return_t getdns_context_set_tls_query_padding_blocksize (getdns_context *context, uint16_t value)
 

Detailed Description

Function Documentation

getdns_return_t getdns_context_set_update_callback ( getdns_context context,
void *  userarg,
void(*)(getdns_context *, getdns_context_code_t, void *)  value 
)

Register a callback function for context changes.

Parameters
contextThe context to monitor for changes
userargA user defined argument that will be passed to the callback function.
valueThe callback function that will be called when a context value is changed. The arguments to the callback function are the context for which the value changes, a code referencing the changed value and the userarg parameter supplied during callback registration.
Returns
GETDNS_RETURN_GOOD on success or an error code on failure.
getdns_return_t getdns_context_set_return_dnssec_status ( getdns_context context,
int  enabled 
)
getdns_return_t getdns_context_set_use_threads ( getdns_context context,
int  use_threads 
)
getdns_return_t getdns_context_set_tls_authentication ( getdns_context context,
getdns_tls_authentication_t  value 
)
getdns_return_t getdns_context_set_edns_client_subnet_private ( getdns_context context,
uint8_t  value 
)
getdns_return_t getdns_context_set_tls_query_padding_blocksize ( getdns_context context,
uint16_t  value 
)