1*e6e30c83Schristos /* $NetBSD: hesiod_p.h,v 1.1.1.2 2012/09/09 16:07:50 christos Exp $ */ 2b5677b36Schristos 3b5677b36Schristos /* 4b5677b36Schristos * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") 5b5677b36Schristos * Copyright (c) 1996,1999 by Internet Software Consortium. 6b5677b36Schristos * 7b5677b36Schristos * Permission to use, copy, modify, and distribute this software for any 8b5677b36Schristos * purpose with or without fee is hereby granted, provided that the above 9b5677b36Schristos * copyright notice and this permission notice appear in all copies. 10b5677b36Schristos * 11b5677b36Schristos * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES 12b5677b36Schristos * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13b5677b36Schristos * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR 14b5677b36Schristos * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15b5677b36Schristos * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16b5677b36Schristos * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 17b5677b36Schristos * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18b5677b36Schristos */ 19b5677b36Schristos 20b5677b36Schristos /* 21b5677b36Schristos * Id: hesiod_p.h,v 1.3 2005/04/27 04:56:27 sra Exp 22b5677b36Schristos */ 23b5677b36Schristos 24b5677b36Schristos #ifndef _HESIOD_P_H_INCLUDED 25b5677b36Schristos #define _HESIOD_P_H_INCLUDED 26b5677b36Schristos 27b5677b36Schristos /** \file 28b5677b36Schristos * \brief 29b5677b36Schristos * hesiod_p.h -- private definitions for the hesiod library. 30b5677b36Schristos * 31b5677b36Schristos * \author 32b5677b36Schristos * This file is primarily maintained by tytso@mit.edu and ghudson@mit.edu. 33b5677b36Schristos */ 34b5677b36Schristos 35b5677b36Schristos #define DEF_RHS ".Athena.MIT.EDU" /*%< Defaults if HESIOD_CONF */ 36b5677b36Schristos #define DEF_LHS ".ns" /*%< file is not */ 37b5677b36Schristos /*%< present. */ 38b5677b36Schristos struct hesiod_p { 39b5677b36Schristos char * LHS; /*%< normally ".ns" */ 40b5677b36Schristos char * RHS; /*%< AKA the default hesiod domain */ 41b5677b36Schristos struct __res_state * res; /*%< resolver context */ 42b5677b36Schristos void (*free_res)(void *); 43b5677b36Schristos void (*res_set)(struct hesiod_p *, struct __res_state *, 44b5677b36Schristos void (*)(void *)); 45b5677b36Schristos struct __res_state * (*res_get)(struct hesiod_p *); 46b5677b36Schristos }; 47b5677b36Schristos 48b5677b36Schristos #define MAX_HESRESP 1024 49b5677b36Schristos 50b5677b36Schristos #endif /*_HESIOD_P_H_INCLUDED*/ 51