rpcb_clnt.h revision 93032
174462Salfred/*	$NetBSD: rpcb_clnt.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $	*/
274462Salfred/*	$FreeBSD: head/include/rpc/rpcb_clnt.h 93032 2002-03-23 17:24:55Z imp $ */
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
6593032Simpextern bool_t rpcb_set(const rpcprog_t, const rpcvers_t,
6693032Simp		       const struct netconfig  *, const struct netbuf *);
6793032Simpextern bool_t rpcb_unset(const rpcprog_t, const rpcvers_t,
6893032Simp			 const struct netconfig *);
6993032Simpextern rpcblist	*rpcb_getmaps(const struct netconfig *, const char *);
7093032Simpextern enum clnt_stat rpcb_rmtcall(const struct netconfig *,
7193032Simp				   const char *, const rpcprog_t,
7293032Simp				   const rpcvers_t, const rpcproc_t,
7393032Simp				   const xdrproc_t, const caddr_t,
7493032Simp				   const xdrproc_t, const caddr_t,
7593032Simp				   const struct timeval,
7693032Simp				   const struct netbuf *);
7793032Simpextern bool_t rpcb_getaddr(const rpcprog_t, const rpcvers_t,
7893032Simp			   const struct netconfig *, struct netbuf *,
7993032Simp			   const  char *);
8093032Simpextern bool_t rpcb_gettime(const char *, time_t *);
8193032Simpextern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *);
8293032Simpextern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *);
8374462Salfred__END_DECLS
8474462Salfred
8574462Salfred#endif	/* !_RPC_RPCB_CLNT_H */
86