Return values and texts

Macros

#define GETDNS_RETURN_GOOD_TEXT   "Good"
 
#define GETDNS_RETURN_GENERIC_ERROR_TEXT   "Generic error"
 
#define GETDNS_RETURN_BAD_DOMAIN_NAME_TEXT   "Badly-formed domain name in first argument"
 
#define GETDNS_RETURN_BAD_CONTEXT_TEXT   "The context has internal deficiencies"
 
#define GETDNS_RETURN_CONTEXT_UPDATE_FAIL_TEXT   "Did not update the context"
 
#define GETDNS_RETURN_UNKNOWN_TRANSACTION_TEXT   "An attempt was made to cancel a callback with a transaction_id that is not recognized"
 
#define GETDNS_RETURN_NO_SUCH_LIST_ITEM_TEXT   "A helper function for lists had an index argument that was too high."
 
#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."
 
#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."
 
#define GETDNS_RETURN_NO_SUCH_EXTENSION_TEXT   "A name in the extensions dict is not a valid extension."
 
#define GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT   "One or more of the extensions have a bad format."
 
#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."
 
#define GETDNS_RETURN_MEMORY_ERROR_TEXT   "Unable to allocate the memory required."
 
#define GETDNS_RETURN_INVALID_PARAMETER_TEXT   "A required parameter had an invalid value."
 
#define GETDNS_RETURN_NOT_IMPLEMENTED_TEXT   "The library did not have the requested API feature implemented."
 
#define GETDNS_RETURN_IO_ERROR   ((getdns_return_t) 397 )
 
#define GETDNS_RETURN_IO_ERROR_TEXT   "An input/output error occurred. Inspect errno for details."
 
#define GETDNS_RETURN_NO_UPSTREAM_AVAILABLE   ((getdns_return_t) 398 )
 
#define GETDNS_RETURN_NO_UPSTREAM_AVAILABLE_TEXT   "None of the configured upstreams could be used to send queries on the specified transports"
 
#define GETDNS_RETURN_NEED_MORE_SPACE   ((getdns_return_t) 399 )
 
#define GETDNS_RETURN_NEED_MORE_SPACE_TEXT   "The buffer was too small"
 

Typedefs

typedef enum getdns_return_t getdns_return_t
 

Enumerations

enum  getdns_return_t {
  GETDNS_RETURN_GOOD = 0 , GETDNS_RETURN_GENERIC_ERROR = 1 , GETDNS_RETURN_BAD_DOMAIN_NAME = 300 , GETDNS_RETURN_BAD_CONTEXT = 301 ,
  GETDNS_RETURN_CONTEXT_UPDATE_FAIL = 302 , GETDNS_RETURN_UNKNOWN_TRANSACTION = 303 , GETDNS_RETURN_NO_SUCH_LIST_ITEM = 304 , GETDNS_RETURN_NO_SUCH_DICT_NAME = 305 ,
  GETDNS_RETURN_WRONG_TYPE_REQUESTED = 306 , GETDNS_RETURN_NO_SUCH_EXTENSION = 307 , GETDNS_RETURN_EXTENSION_MISFORMAT = 308 , GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED = 309 ,
  GETDNS_RETURN_MEMORY_ERROR = 310 , GETDNS_RETURN_INVALID_PARAMETER = 311 , GETDNS_RETURN_NOT_IMPLEMENTED = 312
}
 

Detailed Description

Macro Definition Documentation

◆ GETDNS_RETURN_GOOD_TEXT

#define GETDNS_RETURN_GOOD_TEXT   "Good"

Definition at line 82 of file getdns.h.

◆ GETDNS_RETURN_GENERIC_ERROR_TEXT

#define GETDNS_RETURN_GENERIC_ERROR_TEXT   "Generic error"

Definition at line 83 of file getdns.h.

◆ GETDNS_RETURN_BAD_DOMAIN_NAME_TEXT

#define GETDNS_RETURN_BAD_DOMAIN_NAME_TEXT   "Badly-formed domain name in first argument"

Definition at line 84 of file getdns.h.

◆ GETDNS_RETURN_BAD_CONTEXT_TEXT

#define GETDNS_RETURN_BAD_CONTEXT_TEXT   "The context has internal deficiencies"

Definition at line 85 of file getdns.h.

◆ GETDNS_RETURN_CONTEXT_UPDATE_FAIL_TEXT

#define GETDNS_RETURN_CONTEXT_UPDATE_FAIL_TEXT   "Did not update the context"

Definition at line 86 of file getdns.h.

◆ GETDNS_RETURN_UNKNOWN_TRANSACTION_TEXT

#define GETDNS_RETURN_UNKNOWN_TRANSACTION_TEXT   "An attempt was made to cancel a callback with a transaction_id that is not recognized"

Definition at line 87 of file getdns.h.

◆ GETDNS_RETURN_NO_SUCH_LIST_ITEM_TEXT

#define GETDNS_RETURN_NO_SUCH_LIST_ITEM_TEXT   "A helper function for lists had an index argument that was too high."

Definition at line 88 of file getdns.h.

◆ GETDNS_RETURN_NO_SUCH_DICT_NAME_TEXT

#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."

Definition at line 89 of file getdns.h.

◆ GETDNS_RETURN_WRONG_TYPE_REQUESTED_TEXT

#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."

Definition at line 90 of file getdns.h.

◆ GETDNS_RETURN_NO_SUCH_EXTENSION_TEXT

#define GETDNS_RETURN_NO_SUCH_EXTENSION_TEXT   "A name in the extensions dict is not a valid extension."

Definition at line 91 of file getdns.h.

◆ GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT

#define GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT   "One or more of the extensions have a bad format."

Definition at line 92 of file getdns.h.

◆ GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED_TEXT

#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."

Definition at line 93 of file getdns.h.

◆ GETDNS_RETURN_MEMORY_ERROR_TEXT

#define GETDNS_RETURN_MEMORY_ERROR_TEXT   "Unable to allocate the memory required."

Definition at line 94 of file getdns.h.

◆ GETDNS_RETURN_INVALID_PARAMETER_TEXT

#define GETDNS_RETURN_INVALID_PARAMETER_TEXT   "A required parameter had an invalid value."

Definition at line 95 of file getdns.h.

◆ GETDNS_RETURN_NOT_IMPLEMENTED_TEXT

#define GETDNS_RETURN_NOT_IMPLEMENTED_TEXT   "The library did not have the requested API feature implemented."

Definition at line 96 of file getdns.h.

◆ GETDNS_RETURN_IO_ERROR

#define GETDNS_RETURN_IO_ERROR   ((getdns_return_t) 397 )

Definition at line 60 of file getdns_extra.h.

◆ GETDNS_RETURN_IO_ERROR_TEXT

#define GETDNS_RETURN_IO_ERROR_TEXT   "An input/output error occurred. Inspect errno for details."

Definition at line 61 of file getdns_extra.h.

◆ GETDNS_RETURN_NO_UPSTREAM_AVAILABLE

#define GETDNS_RETURN_NO_UPSTREAM_AVAILABLE   ((getdns_return_t) 398 )

Definition at line 62 of file getdns_extra.h.

◆ GETDNS_RETURN_NO_UPSTREAM_AVAILABLE_TEXT

#define GETDNS_RETURN_NO_UPSTREAM_AVAILABLE_TEXT   "None of the configured upstreams could be used to send queries on the specified transports"

Definition at line 63 of file getdns_extra.h.

◆ GETDNS_RETURN_NEED_MORE_SPACE

#define GETDNS_RETURN_NEED_MORE_SPACE   ((getdns_return_t) 399 )

Definition at line 64 of file getdns_extra.h.

◆ GETDNS_RETURN_NEED_MORE_SPACE_TEXT

#define GETDNS_RETURN_NEED_MORE_SPACE_TEXT   "The buffer was too small"

Definition at line 65 of file getdns_extra.h.

Typedef Documentation

◆ getdns_return_t

Enumeration Type Documentation

◆ getdns_return_t

Enumerator
GETDNS_RETURN_GOOD 
GETDNS_RETURN_GENERIC_ERROR 
GETDNS_RETURN_BAD_DOMAIN_NAME 
GETDNS_RETURN_BAD_CONTEXT 
GETDNS_RETURN_CONTEXT_UPDATE_FAIL 
GETDNS_RETURN_UNKNOWN_TRANSACTION 
GETDNS_RETURN_NO_SUCH_LIST_ITEM 
GETDNS_RETURN_NO_SUCH_DICT_NAME 
GETDNS_RETURN_WRONG_TYPE_REQUESTED 
GETDNS_RETURN_NO_SUCH_EXTENSION 
GETDNS_RETURN_EXTENSION_MISFORMAT 
GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED 
GETDNS_RETURN_MEMORY_ERROR 
GETDNS_RETURN_INVALID_PARAMETER 
GETDNS_RETURN_NOT_IMPLEMENTED 

Definition at line 63 of file getdns.h.