X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/b8358304e7731a640b99bc5912f391fa31518a42..f2ad23eeb92e1e2bc6bb3679e179157102898816:/src/adns.h diff --git a/src/adns.h b/src/adns.h index 5487782..7500d8f 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.26 1998/11/10 02:43:02 ian Exp $ + * $Id: adns.h,v 1.27 1998/11/14 13:18:00 ian Exp $ */ /* * This file is part of adns, which is Copyright (C) 1997, 1998 Ian Jackson @@ -96,6 +96,7 @@ typedef enum { */ typedef enum { + /* fixme: think about error codes */ adns_s_ok, adns_s_timeout, adns_s_nolocalmem, @@ -137,6 +138,11 @@ typedef struct { } adns_rr_intdmaddr; typedef struct { + /* Used both for mx_raw, in which case i is the preference and str the domain, + * and for txt, in which case each entry has i for the `text' length, + * and str for the data (which will have had an extra nul appended + * so that if it was plain text it is now a null-terminated string). + */ int i; char *str; } adns_rr_intstr; @@ -155,10 +161,10 @@ typedef struct { void *untyped; unsigned char *bytes; char *(*str); /* ns_raw, cname, ptr, ptr_raw */ - char *(**manystr); /* txt (list is null-terminated) */ + adns_rr_intstr *(*manyistr); /* txt (list of strings ends with i=-1, str=0) */ struct in_addr *inaddr; /* a */ adns_rr_dmaddr *dmaddr; /* ns */ - adns_rr_strpair *strpair; /* hinfo, rp, rp_raw */ + adns_rr_strpair *strpair; /* hinfo ??fixme, rp, rp_raw */ adns_rr_intdmaddr *intdmaddr; /* mx */ adns_rr_intstr *intstr; /* mx_raw */ adns_rr_soa *soa; /* soa, soa_raw */