174462Salfred/*	$NetBSD: pmap_rmt.h,v 1.7 1998/02/11 23:01:23 lukem Exp $	*/
274462Salfred
3261046Smav/*-
4261046Smav * Copyright (c) 2009, Sun Microsystems, Inc.
5261046Smav * All rights reserved.
68858Srgrimes *
7261046Smav * Redistribution and use in source and binary forms, with or without
8261046Smav * modification, are permitted provided that the following conditions are met:
9261046Smav * - Redistributions of source code must retain the above copyright notice,
10261046Smav *   this list of conditions and the following disclaimer.
11261046Smav * - Redistributions in binary form must reproduce the above copyright notice,
12261046Smav *   this list of conditions and the following disclaimer in the documentation
13261046Smav *   and/or other materials provided with the distribution.
14261046Smav * - Neither the name of Sun Microsystems, Inc. nor the names of its
15261046Smav *   contributors may be used to endorse or promote products derived
16261046Smav *   from this software without specific prior written permission.
178858Srgrimes *
18261046Smav * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19261046Smav * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20261046Smav * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21261046Smav * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22261046Smav * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23261046Smav * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24261046Smav * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25261046Smav * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26261046Smav * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27261046Smav * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28261046Smav * POSSIBILITY OF SUCH DAMAGE.
298858Srgrimes *
308858Srgrimes *	from: @(#)pmap_rmt.h 1.2 88/02/08 SMI
311903Swollman *	from: @(#)pmap_rmt.h	2.1 88/07/29 4.0 RPCSRC
3250473Speter * $FreeBSD$
331839Swollman */
341839Swollman
351839Swollman/*
361839Swollman * Structures and XDR routines for parameters to and replies from
371839Swollman * the portmapper remote-call-service.
381839Swollman *
391839Swollman * Copyright (C) 1986, Sun Microsystems, Inc.
401839Swollman */
411839Swollman
4274462Salfred#ifndef _RPC_PMAP_RMT_H
4374462Salfred#define _RPC_PMAP_RMT_H
441903Swollman#include <sys/cdefs.h>
451903Swollman
461839Swollmanstruct rmtcallargs {
471839Swollman	u_long prog, vers, proc, arglen;
481839Swollman	caddr_t args_ptr;
491839Swollman	xdrproc_t xdr_args;
501839Swollman};
511839Swollman
521839Swollmanstruct rmtcallres {
531839Swollman	u_long *port_ptr;
541839Swollman	u_long resultslen;
551839Swollman	caddr_t results_ptr;
561839Swollman	xdrproc_t xdr_results;
571839Swollman};
581839Swollman
591903Swollman__BEGIN_DECLS
6093032Simpextern bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *);
6193032Simpextern bool_t xdr_rmtcallres(XDR *, struct rmtcallres *);
621903Swollman__END_DECLS
631903Swollman
6474462Salfred#endif /* !_RPC_PMAP_RMT_H */
65