diff --git a/spec/index.html b/spec/index.html index 2f04d6ea..52d908d3 100644 --- a/spec/index.html +++ b/spec/index.html @@ -94,7 +94,7 @@ tr.code { font-family: monospace }
Originally edited by Paul Hoffman
Currently maintained by the getdns team
-Document version: "getdns October 2015 - release candidate 1"
+Document version: "getdns October 2015"
This document describes a modern asynchronous DNS API. This new API is intended to be useful to application developers and operating system distributors as a way of making @@ -2426,7 +2426,7 @@ getdns_pretty_print_dict() for debugging.
There is a tarball that includes the .h files, +
There is a tarball 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
diff --git a/src/context.c b/src/context.c
index defe18e6..8f0669e1 100644
--- a/src/context.c
+++ b/src/context.c
@@ -1358,7 +1358,7 @@ getdns_context_set_dns_transport(
context->dns_transport_count = count;
context->dns_transports = new_transports;
- switch (value) {
+ switch ((int)value) {
case GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP:
context->dns_transports[0] = GETDNS_TRANSPORT_UDP;
context->dns_transports[1] = GETDNS_TRANSPORT_TCP;
diff --git a/src/getdns/getdns.h.in b/src/getdns/getdns.h.in
index 40539c06..2812f0d9 100644
--- a/src/getdns/getdns.h.in
+++ b/src/getdns/getdns.h.in
@@ -61,7 +61,8 @@ typedef enum getdns_return_t {
GETDNS_RETURN_EXTENSION_MISFORMAT = 308,
GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED = 309,
GETDNS_RETURN_MEMORY_ERROR = 310,
- GETDNS_RETURN_INVALID_PARAMETER = 311
+ GETDNS_RETURN_INVALID_PARAMETER = 311,
+ GETDNS_RETURN_NOT_IMPLEMENTED = 312
} getdns_return_t;
/**
@@ -82,6 +83,7 @@ typedef enum getdns_return_t {
#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."
/** @}
*/
@@ -163,12 +165,7 @@ typedef enum getdns_transport_t {
GETDNS_TRANSPORT_UDP_FIRST_AND_FALL_BACK_TO_TCP = 540,
GETDNS_TRANSPORT_UDP_ONLY = 541,
GETDNS_TRANSPORT_TCP_ONLY = 542,
- GETDNS_TRANSPORT_TCP_ONLY_KEEP_CONNECTIONS_OPEN = 543,
- /*