xref: /titanic_50/usr/src/lib/libresolv2/include/hesiod.h (revision 8a3c961b6b8e22607c570d092514b791eb1519e9)
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.h,v 1.7 1999/01/08 19:22:45 vixie Exp $
31  */
32 
33 #ifndef _HESIOD_H_INCLUDED
34 #define _HESIOD_H_INCLUDED
35 
36 int		hesiod_init __P((void **context));
37 void		hesiod_end __P((void *context));
38 char *		hesiod_to_bind __P((void *context, const char *name,
39 				    const char *type));
40 char **		hesiod_resolve __P((void *context, const char *name,
41 				    const char *type));
42 void		hesiod_free_list __P((void *context, char **list));
43 struct __res_state * __hesiod_res_get __P((void *context));
44 void		__hesiod_res_set __P((void *context, struct __res_state *,
45 				      void (*)(void *)));
46 
47 #endif /*_HESIOD_H_INCLUDED*/
48