From fa688cd13336172cf2129ad1e89fd8c7312cb0f5 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Fri, 11 Apr 2014 11:32:10 +0200 Subject: [PATCH] Expose the errorstring lookup function --- src/getdns/getdns_extra.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/getdns/getdns_extra.h b/src/getdns/getdns_extra.h index 604b36c8..0e1a267b 100644 --- a/src/getdns/getdns_extra.h +++ b/src/getdns/getdns_extra.h @@ -36,6 +36,9 @@ extern "C" { #endif +/* Return the text associated with the error code */ +const char *getdns_get_errorstr_by_id(uint16_t err); + /* Enable the return_dnssec_status extension on every request. value is either GETDNS_EXTENSION_TRUE or GETDNS_EXTENSION_FALSE returns GETDNS_RETURN_GOOD on success or GETDNS_RETURN_INVALID_PARAMETER