yplib_host.h revision 1.2
11.2Swiz/* $NetBSD: yplib_host.h,v 1.2 2002/07/06 21:39:25 wiz Exp $ */ 21.1Sthorpej 31.1Sthorpej/* 41.1Sthorpej * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com> 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * Redistribution and use in source and binary forms, with or without 81.1Sthorpej * modification, are permitted provided that the following conditions 91.1Sthorpej * are met: 101.1Sthorpej * 1. Redistributions of source code must retain the above copyright 111.1Sthorpej * notice, this list of conditions and the following disclaimer. 121.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 131.1Sthorpej * notice, this list of conditions and the following disclaimer in the 141.1Sthorpej * documentation and/or other materials provided with the distribution. 151.1Sthorpej * 3. All advertising materials mentioning features or use of this software 161.1Sthorpej * must display the following acknowledgement: 171.1Sthorpej * This product includes software developed by Theo de Raadt. 181.1Sthorpej * 4. The name of the author may not be used to endorse or promote products 191.1Sthorpej * derived from this software without specific prior written permission. 201.1Sthorpej * 211.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 221.1Sthorpej * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 231.1Sthorpej * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241.1Sthorpej * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 251.1Sthorpej * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261.1Sthorpej * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271.1Sthorpej * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281.1Sthorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291.1Sthorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301.1Sthorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311.1Sthorpej * SUCH DAMAGE. 321.1Sthorpej */ 331.1Sthorpej 341.1Sthorpej#ifndef _YPLIB_HOST_H_ 351.1Sthorpej#define _YPLIB_HOST_H_ 361.1Sthorpej 371.2Swizint yp_match_host(CLIENT *client, char *indomain, char *inmap, 381.2Swiz const char *inkey, int inkeylen, char **outval, 391.2Swiz int *outvallen); 401.2Swizint yp_first_host(CLIENT *client, char *indomain, char *inmap, 411.2Swiz char **outkey, int *outkeylen, char **outval, 421.2Swiz int *outvallen); 431.2Swizint yp_next_host(CLIENT *client, char *indomain, char *inmap, 441.2Swiz char *inkey, int inkeylen, char **outkey, 451.2Swiz int *outkeylen, char **outval, int *outvallen); 461.2Swizint yp_master_host(CLIENT *client, 471.2Swiz char *indomain, char *inmap, char **outname); 481.2Swizint yp_order_host(CLIENT *client, 491.2Swiz char *indomain, char *inmap, int *outorder); 501.2Swizint yp_all_host(CLIENT *client, char *indomain, char *inmap, 511.2Swiz struct ypall_callback *incallback); 521.2Swizint yp_maplist_host(CLIENT *client, char *indomain, 531.2Swiz struct ypmaplist **outmaplist); 541.2SwizCLIENT *yp_bind_local(u_int program, u_int version); 551.2SwizCLIENT *yp_bind_host(char *server, u_int program, u_int version, 561.2Swiz u_short port, int usetcp); 571.1Sthorpej 581.1Sthorpej#endif /* _YPLIB_HOST_H_ */ 59