yplib_host.h revision 1.1
11.1Sthorpej/*	$NetBSD: yplib_host.h,v 1.1 1996/08/09 10:14:51 thorpej 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.1Sthorpejint	yp_match_host 	__P((CLIENT *client, char *indomain, char *inmap,
381.1Sthorpej			    const char *inkey, int inkeylen, char **outval,
391.1Sthorpej			    int *outvallen));
401.1Sthorpejint	yp_first_host	__P((CLIENT *client, char *indomain, char *inmap,
411.1Sthorpej			    char **outkey, int *outkeylen, char **outval,
421.1Sthorpej			    int *outvallen));
431.1Sthorpejint	yp_next_host	__P((CLIENT *client, char *indomain, char *inmap,
441.1Sthorpej			    char *inkey, int inkeylen, char **outkey,
451.1Sthorpej			    int *outkeylen, char **outval, int *outvallen));
461.1Sthorpejint	yp_master_host	__P((CLIENT *client,
471.1Sthorpej			    char *indomain, char *inmap, char **outname));
481.1Sthorpejint	yp_order_host	__P((CLIENT *client,
491.1Sthorpej			    char *indomain, char *inmap, int *outorder));
501.1Sthorpejint	yp_all_host	__P((CLIENT *client, char *indomain, char *inmap,
511.1Sthorpej			    struct ypall_callback *incallback));
521.1Sthorpejint	yp_maplist_host	__P((CLIENT *client, char *indomain,
531.1Sthorpej			    struct ypmaplist **outmaplist));
541.1SthorpejCLIENT *yp_bind_local	__P((u_int program, u_int version));
551.1SthorpejCLIENT *yp_bind_host	__P((char *server, u_int program, u_int version,
561.1Sthorpej			    u_short port, int usetcp));
571.1Sthorpej
581.1Sthorpej#endif /* _YPLIB_HOST_H_ */
59