xref: /netbsd-src/external/bsd/libbind/dist/include/hesiod.h (revision 5bbd2a12505d72a8177929a37b5cee489d0a1cfd)
1 /*	$NetBSD: hesiod.h,v 1.1.1.2 2012/09/09 16:07:48 christos Exp $	*/
2 
3 /*
4  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (c) 1996,1999 by Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /*! \file
21  * \brief
22  * This file is primarily maintained by <tytso@mit.edu> and <ghudson@mit.edu>.
23  */
24 
25 /*
26  * Id: hesiod.h,v 1.4 2005/04/27 04:56:14 sra Exp
27  */
28 
29 #ifndef _HESIOD_H_INCLUDED
30 #define _HESIOD_H_INCLUDED
31 
32 int		hesiod_init __P((void **));
33 void		hesiod_end __P((void *));
34 char *		hesiod_to_bind __P((void *, const char *, const char *));
35 char **		hesiod_resolve __P((void *, const char *, const char *));
36 void		hesiod_free_list __P((void *, char **));
37 struct __res_state * __hesiod_res_get __P((void *));
38 void		__hesiod_res_set __P((void *, struct __res_state *,
39 				      void (*)(void *)));
40 
41 #endif /*_HESIOD_H_INCLUDED*/
42