X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/8f2aa8129efb917e07338eddf3aa4d6d682cc4c4..2d77da38fe14f5a9ae8d3fc9ee455c5acdf2be1a:/src/adns.h?ds=sidebyside diff --git a/src/adns.h b/src/adns.h index 9408553..d7cdb9f 100644 --- a/src/adns.h +++ b/src/adns.h @@ -19,16 +19,22 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: adns.h,v 1.53 1999/07/14 22:45:08 ian Exp $ + * $Id: adns.h,v 1.55 1999/08/05 00:03:24 ian Exp $ */ #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