Expand PMF_FN_* macros.
[netbsd-mini2440.git] / usr.sbin / ypserv / common / yplib_host.h
blob9220b3a6fd2c250238e579d31b5c7f96a701d13d
1 /* $NetBSD: yplib_host.h,v 1.3 2003/12/10 12:06:26 agc Exp $ */
3 /*
4 * Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com>
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
17 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
29 #ifndef _YPLIB_HOST_H_
30 #define _YPLIB_HOST_H_
32 int yp_match_host(CLIENT *client, char *indomain, char *inmap,
33 const char *inkey, int inkeylen, char **outval,
34 int *outvallen);
35 int yp_first_host(CLIENT *client, char *indomain, char *inmap,
36 char **outkey, int *outkeylen, char **outval,
37 int *outvallen);
38 int yp_next_host(CLIENT *client, char *indomain, char *inmap,
39 char *inkey, int inkeylen, char **outkey,
40 int *outkeylen, char **outval, int *outvallen);
41 int yp_master_host(CLIENT *client,
42 char *indomain, char *inmap, char **outname);
43 int yp_order_host(CLIENT *client,
44 char *indomain, char *inmap, int *outorder);
45 int yp_all_host(CLIENT *client, const char *indomain, const char *inmap,
46 struct ypall_callback *incallback);
47 int yp_maplist_host(CLIENT *client, char *indomain,
48 struct ypmaplist **outmaplist);
49 CLIENT *yp_bind_local(u_int program, u_int version);
50 CLIENT *yp_bind_host(char *server, u_int program, u_int version,
51 u_short port, int usetcp);
53 #endif /* _YPLIB_HOST_H_ */