Back to index

glibc  2.9
hesiod.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1996,1999 by Internet Software Consortium.
00003  *
00004  * Permission to use, copy, modify, and distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
00009  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
00010  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
00011  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
00012  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
00013  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
00014  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00015  * SOFTWARE.
00016  */
00017 
00018 /*
00019  * This file is primarily maintained by <tytso@mit.edu> and <ghudson@mit.edu>.
00020  */
00021 
00022 /*
00023  * $BINDId: hesiod.h,v 1.7 1999/01/08 19:22:45 vixie Exp $
00024  */
00025 
00026 #ifndef _HESIOD_H_INCLUDED
00027 #define _HESIOD_H_INCLUDED
00028 
00029 int           hesiod_init (void **context);
00030 void          hesiod_end (void *context);
00031 char *        hesiod_to_bind (void *context, const char *name,
00032                             const char *type);
00033 char **              hesiod_resolve (void *context, const char *name,
00034                             const char *type);
00035 void          hesiod_free_list (void *context, char **list);
00036 struct __res_state * __hesiod_res_get (void *context);
00037 void          __hesiod_res_set (void *context, struct __res_state *,
00038                               void (*)(void *));
00039 
00040 #endif /*_HESIOD_H_INCLUDED*/