rpcb_clnt.h revision 74462
174462Salfred/*	$NetBSD: rpcb_clnt.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $	*/
274462Salfred/*	$FreeBSD: head/include/rpc/rpcb_clnt.h 74462 2001-03-19 12:50:13Z alfred $ */
374462Salfred
474462Salfred/*
574462Salfred * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
674462Salfred * unrestricted use provided that this legend is included on all tape
774462Salfred * media and as a part of the software program in whole or part.  Users
874462Salfred * may copy or modify Sun RPC without charge, but are not authorized
974462Salfred * to license or distribute it to anyone else except as part of a product or
1074462Salfred * program developed by the user.
1174462Salfred *
1274462Salfred * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
1374462Salfred * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
1474462Salfred * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
1574462Salfred *
1674462Salfred * Sun RPC is provided with no support and without any obligation on the
1774462Salfred * part of Sun Microsystems, Inc. to assist in its use, correction,
1874462Salfred * modification or enhancement.
1974462Salfred *
2074462Salfred * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
2174462Salfred * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
2274462Salfred * OR ANY PART THEREOF.
2374462Salfred *
2474462Salfred * In no event will Sun Microsystems, Inc. be liable for any lost revenue
2574462Salfred * or profits or other special, indirect and consequential damages, even if
2674462Salfred * Sun has been advised of the possibility of such damages.
2774462Salfred *
2874462Salfred * Sun Microsystems, Inc.
2974462Salfred * 2550 Garcia Avenue
3074462Salfred * Mountain View, California  94043
3174462Salfred */
3274462Salfred/*
3374462Salfred * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
3474462Salfred */
3574462Salfred
3674462Salfred/*
3774462Salfred * rpcb_clnt.h
3874462Salfred * Supplies C routines to get to rpcbid services.
3974462Salfred *
4074462Salfred */
4174462Salfred
4274462Salfred/*
4374462Salfred * Usage:
4474462Salfred *	success = rpcb_set(program, version, nconf, address);
4574462Salfred *	success = rpcb_unset(program, version, nconf);
4674462Salfred *	success = rpcb_getaddr(program, version, nconf, host);
4774462Salfred *	head = rpcb_getmaps(nconf, host);
4874462Salfred *	clnt_stat = rpcb_rmtcall(nconf, host, program, version, procedure,
4974462Salfred *		xdrargs, argsp, xdrres, resp, tout, addr_ptr)
5074462Salfred *	success = rpcb_gettime(host, timep)
5174462Salfred *	uaddr = rpcb_taddr2uaddr(nconf, taddr);
5274462Salfred *	taddr = rpcb_uaddr2uaddr(nconf, uaddr);
5374462Salfred */
5474462Salfred
5574462Salfred#ifndef _RPC_RPCB_CLNT_H
5674462Salfred#define	_RPC_RPCB_CLNT_H
5774462Salfred
5874462Salfred/* #pragma ident	"@(#)rpcb_clnt.h	1.13	94/04/25 SMI" */
5974462Salfred/* rpcb_clnt.h 1.3 88/12/05 SMI */
6074462Salfred
6174462Salfred#include <rpc/types.h>
6274462Salfred#include <rpc/rpcb_prot.h>
6374462Salfred
6474462Salfred__BEGIN_DECLS
6574462Salfredextern bool_t rpcb_set __P((const rpcprog_t, const rpcvers_t,
6674462Salfred			    const struct netconfig  *, const struct netbuf *));
6774462Salfredextern bool_t rpcb_unset __P((const rpcprog_t, const rpcvers_t,
6874462Salfred			      const struct netconfig *));
6974462Salfredextern rpcblist	*rpcb_getmaps __P((const struct netconfig *, const char *));
7074462Salfredextern enum clnt_stat rpcb_rmtcall __P((const struct netconfig *,
7174462Salfred					const char *, const rpcprog_t,
7274462Salfred					const rpcvers_t, const rpcproc_t,
7374462Salfred					const xdrproc_t, const caddr_t,
7474462Salfred					const xdrproc_t, const caddr_t,
7574462Salfred					const struct timeval,
7674462Salfred					const struct netbuf *));
7774462Salfredextern bool_t rpcb_getaddr __P((const rpcprog_t, const rpcvers_t,
7874462Salfred				const struct netconfig *, struct netbuf *,
7974462Salfred				const  char *));
8074462Salfredextern bool_t rpcb_gettime __P((const char *, time_t *));
8174462Salfredextern char *rpcb_taddr2uaddr __P((struct netconfig *, struct netbuf *));
8274462Salfredextern struct netbuf *rpcb_uaddr2taddr __P((struct netconfig *, char *));
8374462Salfred__END_DECLS
8474462Salfred
8574462Salfred#endif	/* !_RPC_RPCB_CLNT_H */
86