X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/8ce38e76272e9164cabef2c7fc1ea24f31364a86..594377f257454efe6b38e68f2d5d367e4bfe2521:/src/adns.h diff --git a/src/adns.h b/src/adns.h index 996d282..698cfb4 100644 --- a/src/adns.h +++ b/src/adns.h @@ -24,11 +24,17 @@ #ifndef ADNS_H_INCLUDED #define ADNS_H_INCLUDED +#ifdef __cplusplus +extern "C" { /* I really dislike this - iwj. */ +#endif #include #include #include +#include +#include +#include /* All struct in_addr anywhere in adns are in NETWORK byte order. */ @@ -297,6 +303,9 @@ void adns_cancel(adns_query query); * first adns_submit or _transact call using the same adns_state after * it became invalid, so you may compare it for equality with other * query handles until you next call _query or _transact. + * + * _submit and _synchronous return ENOSYS if they don't understand the + * query type. */ void adns_finish(adns_state ads); @@ -564,4 +573,7 @@ const char *adns_errabbrev(adns_status st); * not returned by the same adns library. */ +#ifdef __cplusplus +} /* end of extern "C" */ +#endif #endif