Back to index

glibc  2.9
hesiod_p.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1996,1999 by Internet Software Consortium.
00003  *
00004  * Permission to use, copy, modify, and distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
00009  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
00010  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
00011  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
00012  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
00013  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
00014  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00015  * SOFTWARE.
00016  */
00017 
00018 /*
00019  * This file is primarily maintained by <tytso@mit.edu> and <ghudson@mit.edu>.
00020  */
00021 
00022 /*
00023  * $BINDId: hesiod_p.h,v 1.9 1999/01/08 19:24:39 vixie Exp $
00024  */
00025 
00026 /*
00027  * hesiod_p.h -- private definitions for the hesiod library
00028  */
00029 
00030 #ifndef _HESIOD_P_H_INCLUDED
00031 #define _HESIOD_P_H_INCLUDED
00032 
00033 #define DEF_RHS             ".Athena.MIT.EDU"    /* Defaults if HESIOD_CONF */
00034 #define DEF_LHS             ".ns"                /*    file is not */
00035                                           /*    present. */
00036 struct hesiod_p {
00037        char *        LHS;          /* normally ".ns" */
00038        char *        RHS;          /* AKA the default hesiod domain */
00039        struct __res_state * res;   /* resolver context */
00040        void          (*free_res)(void *);
00041        void          (*res_set)(struct hesiod_p *, struct __res_state *,
00042                                void (*)(void *));
00043        struct __res_state * (*res_get)(struct hesiod_p *);
00044        int           classes[2];   /* The class search order. */
00045 };
00046 
00047 #define MAX_HESRESP  1024
00048 
00049 #endif /*_HESIOD_P_H_INCLUDED*/