getdns.h
Go to the documentation of this file.
48 #define GETDNS_COMPILATION_COMMENT "getdns 1.7.0-rc.1 configured on 2021-05-27T22:45:07Z for the December 2015 version of the API"
87 #define GETDNS_RETURN_UNKNOWN_TRANSACTION_TEXT "An attempt was made to cancel a callback with a transaction_id that is not recognized"
88 #define GETDNS_RETURN_NO_SUCH_LIST_ITEM_TEXT "A helper function for lists had an index argument that was too high."
89 #define GETDNS_RETURN_NO_SUCH_DICT_NAME_TEXT "A helper function for dicts had a name argument that for a name that is not in the dict."
90 #define GETDNS_RETURN_WRONG_TYPE_REQUESTED_TEXT "A helper function was supposed to return a certain type for an item, but the wrong type was given."
91 #define GETDNS_RETURN_NO_SUCH_EXTENSION_TEXT "A name in the extensions dict is not a valid extension."
92 #define GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT "One or more of the extensions have a bad format."
93 #define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED_TEXT "A query was made with a context that is using stub resolution and a DNSSEC extension specified."
96 #define GETDNS_RETURN_NOT_IMPLEMENTED_TEXT "The library did not have the requested API feature implemented."
110 #define GETDNS_DNSSEC_INDETERMINATE_TEXT "The record was not determined to be any state in DNSSEC"
114 #define GETDNS_DNSSEC_NOT_PERFORMED_TEXT "DNSSEC validation was not performed (only used for debugging)"
185 #define GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP_TEXT "See getdns_context_set_dns_transport()"
188 #define GETDNS_TRANSPORT_TCP_ONLY_KEEP_CONNECTIONS_OPEN_TEXT "See getdns_context_set_dns_transport()"
225 #define GETDNS_APPEND_NAME_ONLY_TO_SINGLE_LABEL_AFTER_FAILURE_TEXT "See getdns_context_set_append_name()"
226 #define GETDNS_APPEND_NAME_ONLY_TO_MULTIPLE_LABEL_NAME_AFTER_FAILURE_TEXT "See getdns_context_set_append_name()"
260 #define GETDNS_CONTEXT_CODE_RESOLUTION_TYPE_TEXT "Change related to getdns_context_set_resolution_type"
261 #define GETDNS_CONTEXT_CODE_FOLLOW_REDIRECTS_TEXT "Change related to getdns_context_set_follow_redirects"
262 #define GETDNS_CONTEXT_CODE_UPSTREAM_RECURSIVE_SERVERS_TEXT "Change related to getdns_context_set_upstream_recursive_servers"
263 #define GETDNS_CONTEXT_CODE_DNS_ROOT_SERVERS_TEXT "Change related to getdns_context_set_dns_root_servers"
264 #define GETDNS_CONTEXT_CODE_DNS_TRANSPORT_TEXT "Change related to getdns_context_set_dns_transport"
265 #define GETDNS_CONTEXT_CODE_LIMIT_OUTSTANDING_QUERIES_TEXT "Change related to getdns_context_set_limit_outstanding_queries"
268 #define GETDNS_CONTEXT_CODE_DNSSEC_TRUST_ANCHORS_TEXT "Change related to getdns_context_set_dnssec_trust_anchors"
269 #define GETDNS_CONTEXT_CODE_EDNS_MAXIMUM_UDP_PAYLOAD_SIZE_TEXT "Change related to getdns_context_set_edns_maximum_udp_payload_size"
270 #define GETDNS_CONTEXT_CODE_EDNS_EXTENDED_RCODE_TEXT "Change related to getdns_context_set_edns_extended_rcode"
271 #define GETDNS_CONTEXT_CODE_EDNS_VERSION_TEXT "Change related to getdns_context_set_edns_version"
273 #define GETDNS_CONTEXT_CODE_DNSSEC_ALLOWED_SKEW_TEXT "Change related to getdns_context_set_dnssec_allowed_skew"
274 #define GETDNS_CONTEXT_CODE_MEMORY_FUNCTIONS_TEXT "Change related to getdns_context_set_memory_functions"
276 #define GETDNS_CONTEXT_CODE_IDLE_TIMEOUT_TEXT "Change related to getdns_context_set_idle_timeout"
293 #define GETDNS_CALLBACK_CANCEL_TEXT "The calling program cancelled the callback; response is NULL"
294 #define GETDNS_CALLBACK_TIMEOUT_TEXT "The requested action timed out; response is filled in with empty structures"
323 #define GETDNS_RESPSTATUS_NO_SECURE_ANSWERS_TEXT "The context setting for getting only secure responses was specified, and at least one DNS response was received, but no DNS response was determined to be secure through DNSSEC."
325 #define GETDNS_RESPSTATUS_ALL_BOGUS_ANSWERS_TEXT "The context setting for getting only secure responses was specified, and at least one DNS response was received, but all received responses for the requested name were bogus."
345 #define GETDNS_BAD_DNS_CNAME_IN_TARGET_TEXT "A DNS query type that does not allow a target to be a CNAME pointed to a CNAME"
347 #define GETDNS_BAD_DNS_ALL_NUMERIC_LABEL_TEXT "One or more labels in a returned domain name is all-numeric; this is not legal for a hostname"
349 #define GETDNS_BAD_DNS_CNAME_RETURNED_FOR_OTHER_TYPE_TEXT "A DNS query for a type other than CNAME returned a CNAME response"
getdns_return_t getdns_general(getdns_context *context, const char *name, uint16_t request_type, const getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
void(* getdns_callback_t)(getdns_context *context, getdns_callback_type_t callback_type, getdns_dict *response, void *userarg, getdns_transaction_t transaction_id)
Definition: getdns.h:1014
getdns_return_t getdns_cancel_callback(getdns_context *context, getdns_transaction_t transaction_id)
getdns_return_t getdns_service(getdns_context *context, const char *name, const getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
getdns_return_t getdns_hostname(getdns_context *context, const getdns_dict *address, const getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
getdns_return_t getdns_address(getdns_context *context, const char *name, const getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
@ GETDNS_CONTEXT_CODE_LIMIT_OUTSTANDING_QUERIES
Definition: getdns.h:244
@ GETDNS_CONTEXT_CODE_DNSSEC_ALLOWED_SKEW
Definition: getdns.h:252
@ GETDNS_CONTEXT_CODE_EDNS_EXTENDED_RCODE
Definition: getdns.h:249
@ GETDNS_CONTEXT_CODE_EDNS_MAXIMUM_UDP_PAYLOAD_SIZE
Definition: getdns.h:248
@ GETDNS_CONTEXT_CODE_DNSSEC_TRUST_ANCHORS
Definition: getdns.h:247
@ GETDNS_CONTEXT_CODE_UPSTREAM_RECURSIVE_SERVERS
Definition: getdns.h:241
getdns_list * getdns_root_trust_anchor(time_t *utc_date_of_anchor)
getdns_return_t getdns_validate_dnssec(const getdns_list *to_validate, const getdns_list *support_records, const getdns_list *trust_anchors)
getdns_dict * getdns_context_get_api_information(const getdns_context *context)
getdns_return_t getdns_dict_remove_name(getdns_dict *dict, const char *name)
getdns_return_t getdns_context_set_follow_redirects(getdns_context *context, getdns_redirects_t value)
getdns_return_t getdns_context_set_upstream_recursive_servers(getdns_context *context, getdns_list *upstream_list)
getdns_return_t getdns_context_set_edns_maximum_udp_payload_size(getdns_context *context, uint16_t value)
getdns_return_t getdns_context_create_with_extended_memory_functions(getdns_context **context, int set_from_os, void *userarg, void *(*malloc)(void *userarg, size_t), void *(*realloc)(void *userarg, void *, size_t), void(*free)(void *userarg, void *))
getdns_return_t getdns_context_set_dns_transport_list(getdns_context *context, size_t transport_count, getdns_transport_list_t *transports)
getdns_return_t getdns_context_create_with_memory_functions(getdns_context **context, int set_from_os, void *(*malloc)(size_t), void *(*realloc)(void *, size_t), void(*free)(void *))
getdns_return_t getdns_context_set_dns_root_servers(getdns_context *context, getdns_list *addresses)
getdns_return_t getdns_context_set_context_update_callback(getdns_context *context, void(*value)(getdns_context *context, getdns_context_code_t changed_item))
getdns_return_t getdns_context_set_namespaces(getdns_context *context, size_t namespace_count, const getdns_namespace_t *namespaces)
getdns_return_t getdns_context_set_memory_functions(getdns_context *context, void *(*malloc)(size_t), void *(*realloc)(void *, size_t), void(*free)(void *))
getdns_return_t getdns_context_set_suffix(getdns_context *context, getdns_list *value)
getdns_return_t getdns_context_set_edns_version(getdns_context *context, uint8_t value)
getdns_return_t getdns_context_set_dnssec_allowed_skew(getdns_context *context, uint32_t value)
getdns_return_t getdns_context_set_resolution_type(getdns_context *context, getdns_resolution_t value)
getdns_return_t getdns_context_set_edns_do_bit(getdns_context *context, uint8_t value)
getdns_return_t getdns_context_set_extended_memory_functions(getdns_context *context, void *userarg, void *(*malloc)(void *userarg, size_t sz), void *(*realloc)(void *userarg, void *ptr, size_t sz), void(*free)(void *userarg, void *ptr))
getdns_return_t getdns_context_set_dns_transport(getdns_context *context, getdns_transport_t value)
void getdns_context_destroy(getdns_context *context)
getdns_return_t getdns_context_set_limit_outstanding_queries(getdns_context *context, uint16_t limit)
getdns_return_t getdns_context_set_append_name(getdns_context *context, getdns_append_name_t value)
getdns_return_t getdns_context_set_timeout(getdns_context *context, uint64_t timeout)
getdns_return_t getdns_context_set_dnssec_trust_anchors(getdns_context *context, getdns_list *value)
getdns_return_t getdns_context_set_tcp_send_timeout(getdns_context *context, uint32_t value)
getdns_return_t getdns_context_set_edns_extended_rcode(getdns_context *context, uint8_t value)
getdns_return_t getdns_context_create(getdns_context **context, int set_from_os)
getdns_return_t getdns_context_set_idle_timeout(getdns_context *context, uint64_t timeout)
getdns_dict * getdns_dict_create_with_memory_functions(void *(*malloc)(size_t), void *(*realloc)(void *, size_t), void(*free)(void *))
getdns_return_t getdns_dict_get_dict(const getdns_dict *dict, const char *name, getdns_dict **answer)
getdns_return_t getdns_dict_get_bindata(const getdns_dict *dict, const char *name, getdns_bindata **answer)
char * getdns_pretty_print_dict(const getdns_dict *some_dict)
void getdns_dict_destroy(getdns_dict *dict)
getdns_return_t getdns_dict_set_dict(getdns_dict *dict, const char *name, const getdns_dict *child_dict)
getdns_return_t getdns_dict_get_data_type(const getdns_dict *dict, const char *name, getdns_data_type *answer)
getdns_return_t getdns_dict_set_bindata(getdns_dict *dict, const char *name, const getdns_bindata *child_bindata)
getdns_return_t getdns_dict_get_list(const getdns_dict *dict, const char *name, getdns_list **answer)
getdns_return_t getdns_dict_set_int(getdns_dict *dict, const char *name, uint32_t child_uint32)
getdns_dict * getdns_dict_create_with_extended_memory_functions(void *userarg, void *(*malloc)(void *userarg, size_t), void *(*realloc)(void *userarg, void *, size_t), void(*free)(void *userarg, void *))
getdns_return_t getdns_dict_get_int(const getdns_dict *dict, const char *name, uint32_t *answer)
getdns_return_t getdns_dict_get_names(const getdns_dict *dict, getdns_list **answer)
getdns_dict * getdns_dict_create_with_context(const getdns_context *context)
getdns_dict * getdns_dict_create()
getdns_return_t getdns_dict_set_list(getdns_dict *dict, const char *name, const getdns_list *child_list)
getdns_return_t getdns_list_get_list(const getdns_list *list, size_t index, getdns_list **answer)
getdns_list * getdns_list_create_with_context(const getdns_context *context)
getdns_list * getdns_list_create_with_extended_memory_functions(void *userarg, void *(*malloc)(void *userarg, size_t), void *(*realloc)(void *userarg, void *, size_t), void(*free)(void *userarg, void *))
getdns_return_t getdns_list_set_bindata(getdns_list *list, size_t index, const getdns_bindata *child_bindata)
getdns_return_t getdns_list_get_bindata(const getdns_list *list, size_t index, getdns_bindata **answer)
getdns_return_t getdns_list_set_dict(getdns_list *list, size_t index, const getdns_dict *child_dict)
getdns_return_t getdns_list_get_length(const getdns_list *list, size_t *answer)
getdns_list * getdns_list_create()
getdns_return_t getdns_list_set_list(getdns_list *list, size_t index, const getdns_list *child_list)
getdns_return_t getdns_list_get_dict(const getdns_list *list, size_t index, getdns_dict **answer)
void getdns_list_destroy(getdns_list *list)
getdns_return_t getdns_list_set_int(getdns_list *list, size_t index, uint32_t child_uint32)
getdns_return_t getdns_list_get_int(const getdns_list *list, size_t index, uint32_t *answer)
getdns_return_t getdns_list_get_data_type(const getdns_list *list, size_t index, getdns_data_type *answer)
getdns_list * getdns_list_create_with_memory_functions(void *(*malloc)(size_t), void *(*realloc)(void *, size_t), void(*free)(void *))
@ GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED
Definition: getdns.h:75
@ GETDNS_APPEND_NAME_ONLY_TO_MULTIPLE_LABEL_NAME_AFTER_FAILURE
Definition: getdns.h:219
@ GETDNS_APPEND_NAME_ONLY_TO_SINGLE_LABEL_AFTER_FAILURE
Definition: getdns.h:218
getdns_return_t getdns_service_sync(getdns_context *context, const char *name, const getdns_dict *extensions, getdns_dict **response)
getdns_return_t getdns_address_sync(getdns_context *context, const char *name, const getdns_dict *extensions, getdns_dict **response)
getdns_return_t getdns_hostname_sync(getdns_context *context, const getdns_dict *address, const getdns_dict *extensions, getdns_dict **response)
getdns_return_t getdns_general_sync(getdns_context *context, const char *name, uint16_t request_type, const getdns_dict *extensions, getdns_dict **response)
@ GETDNS_TRANSPORT_TCP_ONLY_KEEP_CONNECTIONS_OPEN
Definition: getdns.h:182
@ GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP
Definition: getdns.h:179
char * getdns_convert_ulabel_to_alabel(const char *ulabel)
char * getdns_convert_alabel_to_ulabel(const char *alabel)
getdns_return_t getdns_convert_fqdn_to_dns_name(const char *fqdn_as_string, getdns_bindata **dns_name_wire_fmt)
char * getdns_display_ip_address(const getdns_bindata *bindata_of_ipv4_or_ipv6_address)
getdns_return_t getdns_convert_dns_name_to_fqdn(const getdns_bindata *dns_name_wire_fmt, char **fqdn_as_string)
struct getdns_bindata getdns_bindata
Definition: getdns.h:537