[API 0.365] Add GETDNS_RETURN_MEMORY_ERROR retcode

This commit is contained in:
Willem Toorop 2013-12-04 16:45:17 +01:00
parent 84549e4117
commit 9a90b9b7eb
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* Created at 2013-12-04-16-43-40*/
/* Created at 2013-12-04-16-45-05*/
#ifndef GETDNS_H
#define GETDNS_H
@ -33,6 +33,8 @@
#define GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT "One or more of the extensions have a bad format."
#define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED 309
#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 310
#define GETDNS_RETURN_MEMORY_ERROR_TEXT "Unable to allocate the memory required."
/* DNSSEC values */
#define GETDNS_DNSSEC_SECURE 400

View File

@ -1043,6 +1043,8 @@ typedef struct getdns_list getdns_list;
<p class=descrip>One or more of the extensions have a bad format.</p>
<p class=define>GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED</p>
<p class=descrip>A query was made with a context that is using stub resolution and a DNSSEC extension specified.</p>
<p class=define>GETDNS_RETURN_MEMORY_ERROR</p>
<p class=descrip>Unable to allocate the memory required.</p>
<h2>5.3 <a id="TypeList">Types of RDATA Returned in the API</a></h2>
@ -2113,7 +2115,7 @@ default is the <span class=default>realloc</span> function.</p>
<h1>9. The Generated Files</h1>
<p>There is <a href="getdns-0.364.tgz">a tarball</a> that includes the .h files,
<p>There is <a href="getdns-0.365.tgz">a tarball</a> that includes the .h files,
the examples, and so on. The examples all make, even though there is no API implementation, based
on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine
on the Macintosh and Ubuntu; help is definitely appreciated on making the build process