xref: /illumos-gate/usr/src/lib/libresolv2/common/irs/hesiod_p.h (revision 24da5b34f49324ed742a340010ed5bd3d4e06625)
1 /*
2  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3  * All rights reserved.
4  */
5 
6 /*
7  * Copyright (c) 1996,1999 by Internet Software Consortium.
8  *
9  * Permission to use, copy, modify, and distribute this software for any
10  * purpose with or without fee is hereby granted, provided that the above
11  * copyright notice and this permission notice appear in all copies.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20  * SOFTWARE.
21  */
22 
23 #pragma ident	"%Z%%M%	%I%	%E% SMI"
24 
25 /*
26  * This file is primarily maintained by <tytso@mit.edu> and <ghudson@mit.edu>.
27  */
28 
29 /*
30  * $Id: hesiod_p.h,v 1.9 1999/01/08 19:24:39 vixie Exp $
31  */
32 
33 /*
34  * hesiod_p.h -- private definitions for the hesiod library
35  */
36 
37 #ifndef _HESIOD_P_H_INCLUDED
38 #define _HESIOD_P_H_INCLUDED
39 
40 #define DEF_RHS		".Athena.MIT.EDU"	/* Defaults if HESIOD_CONF */
41 #define DEF_LHS		".ns"			/*    file is not */
42 						/*    present. */
43 struct hesiod_p {
44 	char *		LHS;		/* normally ".ns" */
45 	char *		RHS;		/* AKA the default hesiod domain */
46 	struct __res_state * res;	/* resolver context */
47 	void		(*free_res)(void *);
48 	void		(*res_set)(struct hesiod_p *, struct __res_state *,
49 				   void (*)(void *));
50 	struct __res_state * (*res_get)(struct hesiod_p *);
51 };
52 
53 #define MAX_HESRESP	1024
54 
55 #endif /*_HESIOD_P_H_INCLUDED*/
56