getdns.h
Go to the documentation of this file.
48 #define GETDNS_COMPILATION_COMMENT "getdns 1.1.0-rc1 configured on 2017-03-23T15:59:37Z 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)"
184 #define GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP_TEXT "See getdns_context_set_dns_transport()"
187 #define GETDNS_TRANSPORT_TCP_ONLY_KEEP_CONNECTIONS_OPEN_TEXT "See getdns_context_set_dns_transport()"
224 #define GETDNS_APPEND_NAME_ONLY_TO_SINGLE_LABEL_AFTER_FAILURE_TEXT "See getdns_context_set_append_name()"
225 #define GETDNS_APPEND_NAME_ONLY_TO_MULTIPLE_LABEL_NAME_AFTER_FAILURE_TEXT "See getdns_context_set_append_name()"
259 #define GETDNS_CONTEXT_CODE_RESOLUTION_TYPE_TEXT "Change related to getdns_context_set_resolution_type"
260 #define GETDNS_CONTEXT_CODE_FOLLOW_REDIRECTS_TEXT "Change related to getdns_context_set_follow_redirects"
261 #define GETDNS_CONTEXT_CODE_UPSTREAM_RECURSIVE_SERVERS_TEXT "Change related to getdns_context_set_upstream_recursive_servers"
262 #define GETDNS_CONTEXT_CODE_DNS_ROOT_SERVERS_TEXT "Change related to getdns_context_set_dns_root_servers"
263 #define GETDNS_CONTEXT_CODE_DNS_TRANSPORT_TEXT "Change related to getdns_context_set_dns_transport"
264 #define GETDNS_CONTEXT_CODE_LIMIT_OUTSTANDING_QUERIES_TEXT "Change related to getdns_context_set_limit_outstanding_queries"
267 #define GETDNS_CONTEXT_CODE_DNSSEC_TRUST_ANCHORS_TEXT "Change related to getdns_context_set_dnssec_trust_anchors"
268 #define GETDNS_CONTEXT_CODE_EDNS_MAXIMUM_UDP_PAYLOAD_SIZE_TEXT "Change related to getdns_context_set_edns_maximum_udp_payload_size"
269 #define GETDNS_CONTEXT_CODE_EDNS_EXTENDED_RCODE_TEXT "Change related to getdns_context_set_edns_extended_rcode"
270 #define GETDNS_CONTEXT_CODE_EDNS_VERSION_TEXT "Change related to getdns_context_set_edns_version"
272 #define GETDNS_CONTEXT_CODE_DNSSEC_ALLOWED_SKEW_TEXT "Change related to getdns_context_set_dnssec_allowed_skew"
273 #define GETDNS_CONTEXT_CODE_MEMORY_FUNCTIONS_TEXT "Change related to getdns_context_set_memory_functions"
275 #define GETDNS_CONTEXT_CODE_IDLE_TIMEOUT_TEXT "Change related to getdns_context_set_idle_timeout"
292 #define GETDNS_CALLBACK_CANCEL_TEXT "The calling program cancelled the callback; response is NULL"
293 #define GETDNS_CALLBACK_TIMEOUT_TEXT "The requested action timed out; response is filled in with empty structures"
322 #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."
324 #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."
344 #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"
346 #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"
348 #define GETDNS_BAD_DNS_CNAME_RETURNED_FOR_OTHER_TYPE_TEXT "A DNS query for a type other than CNAME returned a CNAME response"
Definition: getdns.h:159
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_address(getdns_context *context, const char *name, getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
Definition: getdns.h:73
getdns_return_t getdns_dict_set_dict(getdns_dict *dict, const char *name, const getdns_dict *child_dict)
getdns_return_t getdns_context_set_dns_transport(getdns_context *context, getdns_transport_t value)
Definition: getdns.h:212
Definition: getdns.h:242
getdns_return_t getdns_list_get_dict(const getdns_list *list, size_t index, getdns_dict **answer)
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_list * getdns_list_create_with_context(getdns_context *context)
getdns_return_t getdns_context_create(getdns_context **context, int set_from_os)
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 *))
Definition: getdns.h:67
getdns_return_t getdns_service(getdns_context *context, const char *name, getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
getdns_return_t getdns_list_get_data_type(const getdns_list *list, size_t index, getdns_data_type *answer)
getdns_dict * getdns_context_get_api_information(getdns_context *context)
Definition: getdns.h:245
getdns_return_t getdns_dict_get_int(const getdns_dict *dict, const char *name, uint32_t *answer)
getdns_return_t getdns_context_set_idle_timeout(getdns_context *context, uint64_t timeout)
Definition: getdns.h:143
void getdns_list_destroy(getdns_list *list)
getdns_return_t getdns_dict_get_dict(const getdns_dict *dict, const char *name, getdns_dict **answer)
getdns_return_t getdns_dict_get_names(const getdns_dict *dict, getdns_list **answer)
Definition: getdns.h:244
getdns_return_t getdns_cancel_callback(getdns_context *context, getdns_transaction_t transaction_id)
getdns_return_t getdns_context_set_append_name(getdns_context *context, getdns_append_name_t value)
getdns_return_t getdns_context_set_upstream_recursive_servers(getdns_context *context, getdns_list *upstream_list)
getdns_return_t getdns_list_set_list(getdns_list *list, size_t index, const getdns_list *child_list)
Definition: getdns.h:279
Definition: getdns.h:486
Definition: getdns.h:193
Definition: getdns.h:241
getdns_return_t getdns_list_get_bindata(const getdns_list *list, size_t index, getdns_bindata **answer)
getdns_return_t getdns_address_sync(getdns_context *context, const char *name, getdns_dict *extensions, getdns_dict **response)
Definition: getdns.h:484
getdns_list * getdns_list_create_with_memory_functions(void *(*malloc)(size_t), void *(*realloc)(void *, size_t), void(*free)(void *))
Definition: getdns.h:278
Definition: getdns.h:229
getdns_return_t getdns_context_set_edns_version(getdns_context *context, uint8_t value)
Definition: getdns.h:277
Definition: getdns.h:276
Definition: getdns.h:68
Definition: getdns.h:484
Definition: getdns.h:122
getdns_return_t getdns_dict_set_int(getdns_dict *dict, const char *name, uint32_t child_uint32)
Definition: getdns.h:78
struct getdns_bindata getdns_bindata
getdns_return_t getdns_list_get_length(const getdns_list *list, size_t *answer)
Definition: getdns.h:233
Definition: getdns.h:124
void getdns_context_destroy(getdns_context *context)
Definition: getdns.h:66
getdns_return_t getdns_dict_set_list(getdns_dict *dict, const char *name, const getdns_list *child_list)
Definition: getdns.h:158
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_dict_remove_name(getdns_dict *dict, const char *name)
getdns_return_t getdns_convert_dns_name_to_fqdn(const getdns_bindata *dns_name_wire_fmt, char **fqdn_as_string)
Definition: getdns.h:236
getdns_return_t getdns_hostname_sync(getdns_context *context, getdns_dict *address, getdns_dict *extensions, getdns_dict **response)
Definition: getdns.h:72
Definition: getdns.h:484
getdns_return_t getdns_general(getdns_context *context, const char *name, uint16_t request_type, getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
getdns_dict * getdns_dict_create()
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 *))
Definition: getdns.h:234
getdns_return_t getdns_context_set_limit_outstanding_queries(getdns_context *context, uint16_t limit)
getdns_return_t getdns_list_get_list(const getdns_list *list, size_t index, getdns_list **answer)
Definition: getdns.h:144
Definition: getdns.h:74
getdns_return_t getdns_context_set_resolution_type(getdns_context *context, getdns_resolution_t value)
getdns_list * getdns_root_trust_anchor(time_t *utc_date_of_anchor)
Definition: getdns.h:125
Definition: getdns.h:65
void getdns_dict_destroy(getdns_dict *dict)
getdns_return_t getdns_dict_get_data_type(const getdns_dict *dict, const char *name, getdns_data_type *answer)
Definition: getdns.h:175
getdns_return_t getdns_dict_get_list(const getdns_dict *dict, const char *name, getdns_list **answer)
getdns_return_t getdns_context_set_namespaces(getdns_context *context, size_t namespace_count, getdns_namespace_t *namespaces)
getdns_return_t getdns_context_set_edns_maximum_udp_payload_size(getdns_context *context, uint16_t value)
getdns_dict * getdns_dict_create_with_context(getdns_context *context)
Definition: getdns.h:194
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 *))
Definition: getdns.h:77
getdns_return_t getdns_list_set_int(getdns_list *list, size_t index, uint32_t child_uint32)
getdns_return_t getdns_context_set_edns_do_bit(getdns_context *context, uint8_t value)
getdns_return_t getdns_list_set_dict(getdns_list *list, size_t index, const getdns_dict *child_dict)
Definition: getdns.h:484
char * getdns_convert_ulabel_to_alabel(const char *ulabel)
getdns_return_t getdns_dict_get_bindata(const getdns_dict *dict, const char *name, getdns_bindata **answer)
Definition: getdns.h:209
Definition: getdns.h:192
getdns_return_t getdns_context_set_follow_redirects(getdns_context *context, getdns_redirects_t value)
getdns_return_t getdns_validate_dnssec(getdns_list *to_validate, getdns_list *support_records, getdns_list *trust_anchors)
getdns_return_t getdns_context_set_dnssec_allowed_skew(getdns_context *context, uint32_t value)
getdns_return_t getdns_context_set_suffix(getdns_context *context, getdns_list *value)
char * getdns_display_ip_address(const getdns_bindata *bindata_of_ipv4_or_ipv6_address)
char * getdns_pretty_print_dict(const getdns_dict *some_dict)
Definition: getdns.h:237
Definition: getdns.h:174
Definition: getdns.h:71
getdns_dict * getdns_dict_create_with_memory_functions(void *(*malloc)(size_t), void *(*realloc)(void *, size_t), void(*free)(void *))
char * getdns_convert_alabel_to_ulabel(const char *alabel)
getdns_return_t getdns_context_set_dns_root_servers(getdns_context *context, getdns_list *addresses)
getdns_return_t getdns_general_sync(getdns_context *context, const char *name, uint16_t request_type, getdns_dict *extensions, getdns_dict **response)
getdns_return_t getdns_convert_fqdn_to_dns_name(const char *fqdn_as_string, getdns_bindata **dns_name_wire_fmt)
getdns_list * getdns_list_create()
Definition: getdns.h:76
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:851
getdns_return_t getdns_context_set_dnssec_trust_anchors(getdns_context *context, getdns_list *value)
Definition: getdns.h:246
Definition: getdns.h:123
Definition: getdns.h:70
getdns_return_t getdns_context_set_edns_extended_rcode(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))
Definition: getdns.h:64
Definition: getdns.h:126
Definition: getdns.h:230
getdns_return_t getdns_context_set_timeout(getdns_context *context, uint64_t timeout)
Definition: getdns.h:69
getdns_return_t getdns_service_sync(getdns_context *context, const char *name, getdns_dict *extensions, getdns_dict **response)
getdns_return_t getdns_list_set_bindata(getdns_list *list, size_t index, const getdns_bindata *child_bindata)
Definition: getdns.h:231
getdns_return_t getdns_hostname(getdns_context *context, getdns_dict *address, getdns_dict *extensions, void *userarg, getdns_transaction_t *transaction_id, getdns_callback_t callbackfn)
getdns_return_t getdns_list_get_int(const getdns_list *list, size_t index, uint32_t *answer)
getdns_return_t getdns_dict_set_bindata(getdns_dict *dict, const char *name, const getdns_bindata *child_bindata)
getdns_return_t getdns_context_set_context_update_callback(getdns_context *context, void(*value)(getdns_context *context, getdns_context_code_t changed_item))