174462Salfred/*	$NetBSD: pmap_rmt.h,v 1.7 1998/02/11 23:01:23 lukem Exp $	*/
274462Salfred
3258578Shrs/*-
4258578Shrs * Copyright (c) 2009, Sun Microsystems, Inc.
5258578Shrs * All rights reserved.
68858Srgrimes *
7258578Shrs * Redistribution and use in source and binary forms, with or without
8258578Shrs * modification, are permitted provided that the following conditions are met:
9258578Shrs * - Redistributions of source code must retain the above copyright notice,
10258578Shrs *   this list of conditions and the following disclaimer.
11258578Shrs * - Redistributions in binary form must reproduce the above copyright notice,
12258578Shrs *   this list of conditions and the following disclaimer in the documentation
13258578Shrs *   and/or other materials provided with the distribution.
14258578Shrs * - Neither the name of Sun Microsystems, Inc. nor the names of its
15258578Shrs *   contributors may be used to endorse or promote products derived
16258578Shrs *   from this software without specific prior written permission.
178858Srgrimes *
18258578Shrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19258578Shrs * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20258578Shrs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21258578Shrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22258578Shrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23258578Shrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24258578Shrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25258578Shrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26258578Shrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27258578Shrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28258578Shrs * 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