X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/9b86645c0f741697d64ccbab983bf2433a6fa06e..e9d74277f1c1262b5d8daf80b665e98c25b6dc37:/src/adns.h diff --git a/src/adns.h b/src/adns.h index 3e7b429..ec83ba0 100644 --- a/src/adns.h +++ b/src/adns.h @@ -2,7 +2,7 @@ * Copyright (C)1998 Ian Jackson. * This version provided for review and comment only. * - * $Id: adns.h,v 1.35 1998/11/16 00:58:26 ian Exp $ + * $Id: adns.h,v 1.37 1998/11/28 17:37:56 ian Exp $ */ /* * This file is part of adns, which is Copyright (C) 1997, 1998 Ian Jackson @@ -30,6 +30,8 @@ #include #include +/* All struct in_addr anywhere in adns are in NETWORK byte order. */ + typedef struct adns__state *adns_state; typedef struct adns__query *adns_query; @@ -235,8 +237,11 @@ typedef struct { * If no (appropriate) requests are outstanding adns_query and adns_wait return ESRCH; */ -/* fixme: separate parsing from instantiation */ -int adns_init(adns_state *newstate_r, adns_initflags flags, FILE *diagfile/*0=>stderr*/); +int adns_init(adns_state *newstate_r, adns_initflags flags, + FILE *diagfile /*0=>stderr*/); + +int adns_init_strcfg(adns_state *newstate_r, adns_initflags flags, + FILE *diagfile /*0=>discard*/, const char *configtext); int adns_synchronous(adns_state ads, const char *owner,