xref: /titanic_52/usr/src/lib/libresolv2/include/hesiod.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3*7c478bd9Sstevel@tonic-gate  * All rights reserved.
4*7c478bd9Sstevel@tonic-gate  */
5*7c478bd9Sstevel@tonic-gate 
6*7c478bd9Sstevel@tonic-gate /*
7*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1996,1999 by Internet Software Consortium.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * Permission to use, copy, modify, and distribute this software for any
10*7c478bd9Sstevel@tonic-gate  * purpose with or without fee is hereby granted, provided that the above
11*7c478bd9Sstevel@tonic-gate  * copyright notice and this permission notice appear in all copies.
12*7c478bd9Sstevel@tonic-gate  *
13*7c478bd9Sstevel@tonic-gate  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14*7c478bd9Sstevel@tonic-gate  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15*7c478bd9Sstevel@tonic-gate  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16*7c478bd9Sstevel@tonic-gate  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17*7c478bd9Sstevel@tonic-gate  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18*7c478bd9Sstevel@tonic-gate  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19*7c478bd9Sstevel@tonic-gate  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20*7c478bd9Sstevel@tonic-gate  * SOFTWARE.
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate 
23*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate /*
26*7c478bd9Sstevel@tonic-gate  * This file is primarily maintained by <tytso@mit.edu> and <ghudson@mit.edu>.
27*7c478bd9Sstevel@tonic-gate  */
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate /*
30*7c478bd9Sstevel@tonic-gate  * $Id: hesiod.h,v 1.7 1999/01/08 19:22:45 vixie Exp $
31*7c478bd9Sstevel@tonic-gate  */
32*7c478bd9Sstevel@tonic-gate 
33*7c478bd9Sstevel@tonic-gate #ifndef _HESIOD_H_INCLUDED
34*7c478bd9Sstevel@tonic-gate #define _HESIOD_H_INCLUDED
35*7c478bd9Sstevel@tonic-gate 
36*7c478bd9Sstevel@tonic-gate int		hesiod_init __P((void **context));
37*7c478bd9Sstevel@tonic-gate void		hesiod_end __P((void *context));
38*7c478bd9Sstevel@tonic-gate char *		hesiod_to_bind __P((void *context, const char *name,
39*7c478bd9Sstevel@tonic-gate 				    const char *type));
40*7c478bd9Sstevel@tonic-gate char **		hesiod_resolve __P((void *context, const char *name,
41*7c478bd9Sstevel@tonic-gate 				    const char *type));
42*7c478bd9Sstevel@tonic-gate void		hesiod_free_list __P((void *context, char **list));
43*7c478bd9Sstevel@tonic-gate struct __res_state * __hesiod_res_get __P((void *context));
44*7c478bd9Sstevel@tonic-gate void		__hesiod_res_set __P((void *context, struct __res_state *,
45*7c478bd9Sstevel@tonic-gate 				      void (*)(void *)));
46*7c478bd9Sstevel@tonic-gate 
47*7c478bd9Sstevel@tonic-gate #endif /*_HESIOD_H_INCLUDED*/
48