xref: /titanic_52/usr/src/lib/libresolv2/common/irs/hesiod_p.h (revision 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829)
17c478bd9Sstevel@tonic-gate /*
2*9525b14bSRao Shoaib  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
37c478bd9Sstevel@tonic-gate  * Copyright (c) 1996,1999 by Internet Software Consortium.
47c478bd9Sstevel@tonic-gate  *
57c478bd9Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software for any
67c478bd9Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
77c478bd9Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
87c478bd9Sstevel@tonic-gate  *
9*9525b14bSRao Shoaib  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
10*9525b14bSRao Shoaib  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*9525b14bSRao Shoaib  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
12*9525b14bSRao Shoaib  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*9525b14bSRao Shoaib  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*9525b14bSRao Shoaib  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15*9525b14bSRao Shoaib  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
167c478bd9Sstevel@tonic-gate  */
177c478bd9Sstevel@tonic-gate 
187c478bd9Sstevel@tonic-gate /*
19*9525b14bSRao Shoaib  * $Id: hesiod_p.h,v 1.3 2005/04/27 04:56:27 sra Exp $
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate 
227c478bd9Sstevel@tonic-gate #ifndef _HESIOD_P_H_INCLUDED
237c478bd9Sstevel@tonic-gate #define _HESIOD_P_H_INCLUDED
247c478bd9Sstevel@tonic-gate 
25*9525b14bSRao Shoaib /** \file
26*9525b14bSRao Shoaib  * \brief
27*9525b14bSRao Shoaib  * hesiod_p.h -- private definitions for the hesiod library.
28*9525b14bSRao Shoaib  *
29*9525b14bSRao Shoaib  * \author
30*9525b14bSRao Shoaib  * This file is primarily maintained by tytso@mit.edu and ghudson@mit.edu.
31*9525b14bSRao Shoaib  */
32*9525b14bSRao Shoaib 
33*9525b14bSRao Shoaib #define DEF_RHS		".Athena.MIT.EDU"	/*%< Defaults if HESIOD_CONF */
34*9525b14bSRao Shoaib #define DEF_LHS		".ns"			/*%<    file is not */
35*9525b14bSRao Shoaib 						/*%<    present. */
367c478bd9Sstevel@tonic-gate struct hesiod_p {
37*9525b14bSRao Shoaib 	char *		LHS;		/*%< normally ".ns" */
38*9525b14bSRao Shoaib 	char *		RHS;		/*%< AKA the default hesiod domain */
39*9525b14bSRao Shoaib 	struct __res_state * res;	/*%< resolver context */
407c478bd9Sstevel@tonic-gate 	void		(*free_res)(void *);
417c478bd9Sstevel@tonic-gate 	void		(*res_set)(struct hesiod_p *, struct __res_state *,
427c478bd9Sstevel@tonic-gate 				   void (*)(void *));
437c478bd9Sstevel@tonic-gate 	struct __res_state * (*res_get)(struct hesiod_p *);
447c478bd9Sstevel@tonic-gate };
457c478bd9Sstevel@tonic-gate 
467c478bd9Sstevel@tonic-gate #define MAX_HESRESP	1024
477c478bd9Sstevel@tonic-gate 
487c478bd9Sstevel@tonic-gate #endif /*_HESIOD_P_H_INCLUDED*/
49