X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/226c5eef1caec08ee33276de158e263c0593c0d0..e0d855e1cf6273d258889c11551976f42a6c79b4:/src/adns.h?ds=sidebyside diff --git a/src/adns.h b/src/adns.h index fa9b6ca..cb2d671 100644 --- a/src/adns.h +++ b/src/adns.h @@ -798,9 +798,12 @@ adns_status adns_rr_info(adns_rrtype type, const char *adns_strerror(adns_status st); const char *adns_errabbrev(adns_status st); +const char *adns_errtypeabbrev(adns_status st); /* Like strerror but for adns_status values. adns_errabbrev returns * the abbreviation of the error - eg, for adns_s_timeout it returns - * "timeout". You MUST NOT call these functions with status values + * "timeout". adns_errtypeabbrev returns the abbreviation of the + * error class: ie, for values up to adns_s_max_XXX it will return the + * string XXX. You MUST NOT call these functions with status values * not returned by the same adns library. */