/* -*-  mode:c; tab-width:8; c-basic-offset:8; indent-tabs-mode:nil;  -*- */
/*
Copyright (c) 2014, Ronnie Sahlberg
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer. 
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies, 
either expressed or implied, of the FreeBSD Project.
*/
/*
 * Please do not edit this file.
 * It was generated using rpcgen.
 */

#ifndef _PORTMAP_H_RPCGEN
#define _PORTMAP_H_RPCGEN

#include <nfsc/libnfs-zdr.h>


#ifdef __cplusplus
extern "C" {
#endif

#define PMAP_PORT 111

struct pmap2_mapping {
	uint32_t prog;
	uint32_t vers;
	uint32_t prot;
	uint32_t port;
};
typedef struct pmap2_mapping pmap2_mapping;

struct pmap2_call_args {
	uint32_t prog;
	uint32_t vers;
	uint32_t proc;
	struct {
		uint32_t args_len;
		char *args_val;
	} args;
};
typedef struct pmap2_call_args pmap2_call_args;

struct pmap2_call_result {
	uint32_t port;
	struct {
		uint32_t res_len;
		char *res_val;
	} res;
};
typedef struct pmap2_call_result pmap2_call_result;

struct pmap2_mapping_list {
	pmap2_mapping map;
	struct pmap2_mapping_list *next;
};
typedef struct pmap2_mapping_list pmap2_mapping_list;

struct pmap2_dump_result {
	struct pmap2_mapping_list *list;
};
typedef struct pmap2_dump_result pmap2_dump_result;

struct pmap3_string_result {
	char *addr;
};
typedef struct pmap3_string_result pmap3_string_result;

struct pmap3_mapping {
	uint32_t prog;
	uint32_t vers;
	char *netid;
	char *addr;
	char *owner;
};
typedef struct pmap3_mapping pmap3_mapping;

struct pmap3_mapping_list {
	pmap3_mapping map;
	struct pmap3_mapping_list *next;
};
typedef struct pmap3_mapping_list pmap3_mapping_list;

struct pmap3_dump_result {
	struct pmap3_mapping_list *list;
};
typedef struct pmap3_dump_result pmap3_dump_result;

struct pmap3_call_args {
	uint32_t prog;
	uint32_t vers;
	uint32_t proc;
	struct {
		uint32_t args_len;
		char *args_val;
	} args;
};
typedef struct pmap3_call_args pmap3_call_args;

struct rpcb_rmtcallres {
	char *addr;
	struct {
		uint32_t results_len;
		char *results_val;
	} results;
};
typedef struct rpcb_rmtcallres rpcb_rmtcallres;

struct pmap3_netbuf {
	uint32_t maxlen;
	struct {
		uint32_t buf_len;
		char *buf_val;
	} buf;
};
typedef struct pmap3_netbuf pmap3_netbuf;

struct pmap4_string_result {
	char *addr;
};
typedef struct pmap4_string_result pmap4_string_result;

struct pmap4_mapping {
	uint32_t prog;
	uint32_t vers;
	char *netid;
	char *addr;
	char *owner;
};
typedef struct pmap4_mapping pmap4_mapping;

struct pmap4_mapping_list {
	pmap4_mapping map;
	struct pmap4_mapping_list *next;
};
typedef struct pmap4_mapping_list pmap4_mapping_list;

struct pmap4_dump_result {
	struct pmap4_mapping_list *list;
};
typedef struct pmap4_dump_result pmap4_dump_result;

struct pmap4_bcast_args {
	uint32_t prog;
	uint32_t vers;
	uint32_t proc;
	struct {
		uint32_t args_len;
		char *args_val;
	} args;
};
typedef struct pmap4_bcast_args pmap4_bcast_args;

struct pmap4_netbuf {
	uint32_t maxlen;
	struct {
		uint32_t buf_len;
		char *buf_val;
	} buf;
};
typedef struct pmap4_netbuf pmap4_netbuf;

struct pmap4_indirect_args {
	uint32_t prog;
	uint32_t vers;
	uint32_t proc;
	struct {
		uint32_t args_len;
		char *args_val;
	} args;
};
typedef struct pmap4_indirect_args pmap4_indirect_args;
#define RPCBSTAT_HIGHPROC 13
#define RPCBVERS_STAT 3
#define RPCBVERS_4_STAT 2
#define RPCBVERS_3_STAT 1
#define RPCBVERS_2_STAT 0

struct rpcbs_addrlist {
	uint32_t prog;
	uint32_t vers;
	int32_t success;
	int32_t failure;
	char *netid;
	struct rpcbs_addrlist *next;
};
typedef struct rpcbs_addrlist rpcbs_addrlist;

struct rpcbs_rmtcalllist {
	uint32_t prog;
	uint32_t vers;
	uint32_t proc;
	int32_t success;
	int32_t failure;
	int32_t indirect;
	char *netid;
	struct rpcbs_rmtcalllist *next;
};
typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;

typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];

typedef rpcbs_addrlist *rpcbs_addrlist_ptr;

typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;

struct rpcb_stat {
	rpcbs_proc info;
	int32_t setinfo;
	int32_t unsetinfo;
	rpcbs_addrlist_ptr addrinfo;
	rpcbs_rmtcalllist_ptr rmtinfo;
};
typedef struct rpcb_stat rpcb_stat;

typedef rpcb_stat pmap4_stat_byvers[RPCBVERS_STAT];
#define NC_TPI_CLTS 1
#define NC_TPI_COTS 2
#define NC_TPI_COTS_ORD 3
#define NC_TPI_RAW 4

struct rpcb_entry {
	char *r_maddr;
	char *r_nc_netid;
	uint32_t r_nc_semantics;
	char *r_nc_protofmly;
	char *r_nc_proto;
};
typedef struct rpcb_entry rpcb_entry;

struct rpcb_entry_list {
	rpcb_entry rpcb_entry_map;
	struct rpcb_entry_list *next;
};
typedef struct rpcb_entry_list rpcb_entry_list;

typedef rpcb_entry_list *pmap4_entry_list_ptr;

typedef pmap2_mapping PMAP2SETargs;

typedef pmap2_mapping PMAP2UNSETargs;

typedef pmap2_mapping PMAP2GETPORTargs;

typedef pmap2_call_args PMAP2CALLITargs;

typedef pmap2_call_result PMAP2CALLITres;

typedef pmap2_dump_result PMAP2DUMPres;

typedef pmap3_mapping PMAP3SETargs;

typedef pmap3_mapping PMAP3UNSETargs;

typedef pmap3_mapping PMAP3GETADDRargs;

typedef pmap3_string_result PMAP3GETADDRres;

typedef pmap3_dump_result PMAP3DUMPres;

typedef pmap3_call_args PMAP3CALLITargs;

typedef rpcb_rmtcallres PMAP3CALLITres;

typedef pmap3_string_result PMAP3UADDR2TADDRargs;

typedef pmap3_netbuf PMAP3UADDR2TADDRres;

typedef pmap3_netbuf PMAP3TADDR2UADDRargs;

typedef pmap3_string_result PMAP3TADDR2UADDRres;

typedef pmap4_mapping PMAP4SETargs;

typedef pmap4_mapping PMAP4UNSETargs;

typedef pmap4_mapping PMAP4GETADDRargs;

typedef pmap4_string_result PMAP4GETADDRres;

typedef pmap4_dump_result PMAP4DUMPres;

typedef pmap4_bcast_args PMAP4BCASTargs;

typedef rpcb_rmtcallres PMAP4BCASTres;

typedef pmap3_string_result PMAP4UADDR2TADDRargs;

typedef pmap4_netbuf PMAP4UADDR2TADDRres;

typedef pmap4_netbuf PMAP4TADDR2UADDRargs;

typedef pmap4_string_result PMAP4TADDR2UADDRres;

typedef pmap4_mapping PMAP4GETVERSADDRargs;

typedef pmap4_string_result PMAP4GETVERSADDRres;

typedef pmap4_indirect_args PMAP4INDIRECTargs;

typedef rpcb_rmtcallres PMAP4INDIRECTres;

typedef pmap4_stat_byvers PMAP4GETSTATres;

typedef pmap4_mapping PMAP4GETADDRLISTargs;

typedef pmap4_entry_list_ptr PMAP4GETADDRLISTres;

#define PMAP_PROGRAM 100000
#define PMAP_V2 2

#if defined(__STDC__) || defined(__cplusplus)
#define PMAP2_NULL 0
extern  void * pmap2_null_2(void *, void *);
extern  void * pmap2_null_2_svc(void *, struct svc_req *);
#define PMAP2_SET 1
extern  uint32_t * pmap2_set_2(PMAP2SETargs *, void *);
extern  uint32_t * pmap2_set_2_svc(PMAP2SETargs *, struct svc_req *);
#define PMAP2_UNSET 2
extern  uint32_t * pmap2_unset_2(PMAP2UNSETargs *, void *);
extern  uint32_t * pmap2_unset_2_svc(PMAP2UNSETargs *, struct svc_req *);
#define PMAP2_GETPORT 3
extern  uint32_t * pmap2_getport_2(PMAP2GETPORTargs *, void *);
extern  uint32_t * pmap2_getport_2_svc(PMAP2GETPORTargs *, struct svc_req *);
#define PMAP2_DUMP 4
extern  PMAP2DUMPres * pmap2_dump_2(void *, void *);
extern  PMAP2DUMPres * pmap2_dump_2_svc(void *, struct svc_req *);
#define PMAP2_CALLIT 5
extern  PMAP2CALLITres * pmap2_callit_2(PMAP2CALLITargs *, void *);
extern  PMAP2CALLITres * pmap2_callit_2_svc(PMAP2CALLITargs *, struct svc_req *);
extern int pmap_program_2_freeresult (void *, zdrproc_t, caddr_t);

#else /* K&R C */
#define PMAP2_NULL 0
extern  void * pmap2_null_2();
extern  void * pmap2_null_2_svc();
#define PMAP2_SET 1
extern  uint32_t * pmap2_set_2();
extern  uint32_t * pmap2_set_2_svc();
#define PMAP2_UNSET 2
extern  uint32_t * pmap2_unset_2();
extern  uint32_t * pmap2_unset_2_svc();
#define PMAP2_GETPORT 3
extern  uint32_t * pmap2_getport_2();
extern  uint32_t * pmap2_getport_2_svc();
#define PMAP2_DUMP 4
extern  PMAP2DUMPres * pmap2_dump_2();
extern  PMAP2DUMPres * pmap2_dump_2_svc();
#define PMAP2_CALLIT 5
extern  PMAP2CALLITres * pmap2_callit_2();
extern  PMAP2CALLITres * pmap2_callit_2_svc();
extern int pmap_program_2_freeresult ();
#endif /* K&R C */
#define PMAP_V3 3

#if defined(__STDC__) || defined(__cplusplus)
#define PMAP3_NULL 0
extern  void * pmap3_null_3(void *, void *);
extern  void * pmap3_null_3_svc(void *, struct svc_req *);
#define PMAP3_SET 1
extern  uint32_t * pmap3_set_3(PMAP3SETargs *, void *);
extern  uint32_t * pmap3_set_3_svc(PMAP3SETargs *, struct svc_req *);
#define PMAP3_UNSET 2
extern  uint32_t * pmap3_unset_3(PMAP3UNSETargs *, void *);
extern  uint32_t * pmap3_unset_3_svc(PMAP3UNSETargs *, struct svc_req *);
#define PMAP3_GETADDR 3
extern  PMAP3GETADDRres * pmap3_getaddr_3(PMAP3GETADDRargs *, void *);
extern  PMAP3GETADDRres * pmap3_getaddr_3_svc(PMAP3GETADDRargs *, struct svc_req *);
#define PMAP3_DUMP 4
extern  PMAP3DUMPres * pmap3_dump_3(void *, void *);
extern  PMAP3DUMPres * pmap3_dump_3_svc(void *, struct svc_req *);
#define PMAP3_CALLIT 5
extern  PMAP3CALLITres * pmap3_callit_3(PMAP3CALLITargs *, void *);
extern  PMAP3CALLITres * pmap3_callit_3_svc(PMAP3CALLITargs *, struct svc_req *);
#define PMAP3_GETTIME 6
extern  uint32_t * pmap3_gettime_3(void *, void *);
extern  uint32_t * pmap3_gettime_3_svc(void *, struct svc_req *);
#define PMAP3_UADDR2TADDR 7
extern  PMAP3UADDR2TADDRres * pmap3_uaddr2taddr_3(PMAP3UADDR2TADDRargs *, void *);
extern  PMAP3UADDR2TADDRres * pmap3_uaddr2taddr_3_svc(PMAP3UADDR2TADDRargs *, struct svc_req *);
#define PMAP3_TADDR2UADDR 8
extern  PMAP3TADDR2UADDRres * pmap3_taddr2uaddr_3(PMAP3TADDR2UADDRargs *, void *);
extern  PMAP3TADDR2UADDRres * pmap3_taddr2uaddr_3_svc(PMAP3TADDR2UADDRargs *, struct svc_req *);
extern int pmap_program_3_freeresult (void *, zdrproc_t, caddr_t);

#else /* K&R C */
#define PMAP3_NULL 0
extern  void * pmap3_null_3();
extern  void * pmap3_null_3_svc();
#define PMAP3_SET 1
extern  uint32_t * pmap3_set_3();
extern  uint32_t * pmap3_set_3_svc();
#define PMAP3_UNSET 2
extern  uint32_t * pmap3_unset_3();
extern  uint32_t * pmap3_unset_3_svc();
#define PMAP3_GETADDR 3
extern  PMAP3GETADDRres * pmap3_getaddr_3();
extern  PMAP3GETADDRres * pmap3_getaddr_3_svc();
#define PMAP3_DUMP 4
extern  PMAP3DUMPres * pmap3_dump_3();
extern  PMAP3DUMPres * pmap3_dump_3_svc();
#define PMAP3_CALLIT 5
extern  PMAP3CALLITres * pmap3_callit_3();
extern  PMAP3CALLITres * pmap3_callit_3_svc();
#define PMAP3_GETTIME 6
extern  uint32_t * pmap3_gettime_3();
extern  uint32_t * pmap3_gettime_3_svc();
#define PMAP3_UADDR2TADDR 7
extern  PMAP3UADDR2TADDRres * pmap3_uaddr2taddr_3();
extern  PMAP3UADDR2TADDRres * pmap3_uaddr2taddr_3_svc();
#define PMAP3_TADDR2UADDR 8
extern  PMAP3TADDR2UADDRres * pmap3_taddr2uaddr_3();
extern  PMAP3TADDR2UADDRres * pmap3_taddr2uaddr_3_svc();
extern int pmap_program_3_freeresult ();
#endif /* K&R C */
#define PMAP_V4 4

#if defined(__STDC__) || defined(__cplusplus)
#define PMAP4_NULL 0
extern  void * pmap4_null_4(void *, void *);
extern  void * pmap4_null_4_svc(void *, struct svc_req *);
#define PMAP4_SET 1
extern  uint32_t * pmap4_set_4(PMAP4SETargs *, void *);
extern  uint32_t * pmap4_set_4_svc(PMAP4SETargs *, struct svc_req *);
#define PMAP4_UNSET 2
extern  uint32_t * pmap4_unset_4(PMAP4UNSETargs *, void *);
extern  uint32_t * pmap4_unset_4_svc(PMAP4UNSETargs *, struct svc_req *);
#define PMAP4_GETADDR 3
extern  PMAP4GETADDRres * pmap4_getaddr_4(PMAP4GETADDRargs *, void *);
extern  PMAP4GETADDRres * pmap4_getaddr_4_svc(PMAP4GETADDRargs *, struct svc_req *);
#define PMAP4_DUMP 4
extern  PMAP4DUMPres * pmap4_dump_4(void *, void *);
extern  PMAP4DUMPres * pmap4_dump_4_svc(void *, struct svc_req *);
#define PMAP4_BCAST 5
extern  PMAP4BCASTres * pmap4_bcast_4(PMAP4BCASTargs *, void *);
extern  PMAP4BCASTres * pmap4_bcast_4_svc(PMAP4BCASTargs *, struct svc_req *);
#define PMAP4_GETTIME 6
extern  uint32_t * pmap4_gettime_4(void *, void *);
extern  uint32_t * pmap4_gettime_4_svc(void *, struct svc_req *);
#define PMAP4_UADDR2TADDR 7
extern  PMAP4UADDR2TADDRres * pmap4_uaddr2taddr_4(PMAP4UADDR2TADDRargs *, void *);
extern  PMAP4UADDR2TADDRres * pmap4_uaddr2taddr_4_svc(PMAP4UADDR2TADDRargs *, struct svc_req *);
#define PMAP4_TADDR2UADDR 8
extern  PMAP4TADDR2UADDRres * pmap4_taddr2uaddr_4(PMAP4TADDR2UADDRargs *, void *);
extern  PMAP4TADDR2UADDRres * pmap4_taddr2uaddr_4_svc(PMAP4TADDR2UADDRargs *, struct svc_req *);
#define PMAP4_GETVERSADDR 9
extern  PMAP4GETVERSADDRres * pmap4_getversaddr_4(PMAP4GETVERSADDRargs *, void *);
extern  PMAP4GETVERSADDRres * pmap4_getversaddr_4_svc(PMAP4GETVERSADDRargs *, struct svc_req *);
#define PMAP4_INDIRECT 10
extern  PMAP4INDIRECTres * pmap4_indirect_4(PMAP4INDIRECTargs *, void *);
extern  PMAP4INDIRECTres * pmap4_indirect_4_svc(PMAP4INDIRECTargs *, struct svc_req *);
#define PMAP4_GETADDRLIST 11
extern  PMAP4GETADDRLISTres * pmap4_getaddrlist_4(PMAP4GETADDRLISTargs *, void *);
extern  PMAP4GETADDRLISTres * pmap4_getaddrlist_4_svc(PMAP4GETADDRLISTargs *, struct svc_req *);
#define PMAP4_GETSTAT 12
extern  rpcb_stat * pmap4_getstat_4(void *, void *);
extern  rpcb_stat * pmap4_getstat_4_svc(void *, struct svc_req *);
extern int pmap_program_4_freeresult (void *, zdrproc_t, caddr_t);

#else /* K&R C */
#define PMAP4_NULL 0
extern  void * pmap4_null_4();
extern  void * pmap4_null_4_svc();
#define PMAP4_SET 1
extern  uint32_t * pmap4_set_4();
extern  uint32_t * pmap4_set_4_svc();
#define PMAP4_UNSET 2
extern  uint32_t * pmap4_unset_4();
extern  uint32_t * pmap4_unset_4_svc();
#define PMAP4_GETADDR 3
extern  PMAP4GETADDRres * pmap4_getaddr_4();
extern  PMAP4GETADDRres * pmap4_getaddr_4_svc();
#define PMAP4_DUMP 4
extern  PMAP4DUMPres * pmap4_dump_4();
extern  PMAP4DUMPres * pmap4_dump_4_svc();
#define PMAP4_BCAST 5
extern  PMAP4BCASTres * pmap4_bcast_4();
extern  PMAP4BCASTres * pmap4_bcast_4_svc();
#define PMAP4_GETTIME 6
extern  uint32_t * pmap4_gettime_4();
extern  uint32_t * pmap4_gettime_4_svc();
#define PMAP4_UADDR2TADDR 7
extern  PMAP4UADDR2TADDRres * pmap4_uaddr2taddr_4();
extern  PMAP4UADDR2TADDRres * pmap4_uaddr2taddr_4_svc();
#define PMAP4_TADDR2UADDR 8
extern  PMAP4TADDR2UADDRres * pmap4_taddr2uaddr_4();
extern  PMAP4TADDR2UADDRres * pmap4_taddr2uaddr_4_svc();
#define PMAP4_GETVERSADDR 9
extern  PMAP4GETVERSADDRres * pmap4_getversaddr_4();
extern  PMAP4GETVERSADDRres * pmap4_getversaddr_4_svc();
#define PMAP4_INDIRECT 10
extern  PMAP4INDIRECTres * pmap4_indirect_4();
extern  PMAP4INDIRECTres * pmap4_indirect_4_svc();
#define PMAP4_GETADDRLIST 11
extern  PMAP4GETADDRLISTres * pmap4_getaddrlist_4();
extern  PMAP4GETADDRLISTres * pmap4_getaddrlist_4_svc();
#define PMAP4_GETSTAT 12
extern  rpcb_stat * pmap4_getstat_4();
extern  rpcb_stat * pmap4_getstat_4_svc();
extern int pmap_program_4_freeresult ();
#endif /* K&R C */

/* the zdr functions */

#if defined(__STDC__) || defined(__cplusplus)
extern  uint32_t zdr_pmap2_mapping (ZDR *, pmap2_mapping*);
extern  uint32_t zdr_pmap2_call_args (ZDR *, pmap2_call_args*);
extern  uint32_t zdr_pmap2_call_result (ZDR *, pmap2_call_result*);
extern  uint32_t zdr_pmap2_mapping_list (ZDR *, pmap2_mapping_list*);
extern  uint32_t zdr_pmap2_dump_result (ZDR *, pmap2_dump_result*);
extern  uint32_t zdr_pmap3_string_result (ZDR *, pmap3_string_result*);
extern  uint32_t zdr_pmap3_mapping (ZDR *, pmap3_mapping*);
extern  uint32_t zdr_pmap3_mapping_list (ZDR *, pmap3_mapping_list*);
extern  uint32_t zdr_pmap3_dump_result (ZDR *, pmap3_dump_result*);
extern  uint32_t zdr_pmap3_call_args (ZDR *, pmap3_call_args*);
extern  uint32_t zdr_rpcb_rmtcallres (ZDR *, rpcb_rmtcallres*);
extern  uint32_t zdr_pmap3_netbuf (ZDR *, pmap3_netbuf*);
extern  uint32_t zdr_pmap4_string_result (ZDR *, pmap4_string_result*);
extern  uint32_t zdr_pmap4_mapping (ZDR *, pmap4_mapping*);
extern  uint32_t zdr_pmap4_mapping_list (ZDR *, pmap4_mapping_list*);
extern  uint32_t zdr_pmap4_dump_result (ZDR *, pmap4_dump_result*);
extern  uint32_t zdr_pmap4_bcast_args (ZDR *, pmap4_bcast_args*);
extern  uint32_t zdr_pmap4_netbuf (ZDR *, pmap4_netbuf*);
extern  uint32_t zdr_pmap4_indirect_args (ZDR *, pmap4_indirect_args*);
extern  uint32_t zdr_rpcbs_addrlist (ZDR *, rpcbs_addrlist*);
extern  uint32_t zdr_rpcbs_rmtcalllist (ZDR *, rpcbs_rmtcalllist*);
extern  uint32_t zdr_rpcbs_proc (ZDR *, rpcbs_proc);
extern  uint32_t zdr_rpcbs_addrlist_ptr (ZDR *, rpcbs_addrlist_ptr*);
extern  uint32_t zdr_rpcbs_rmtcalllist_ptr (ZDR *, rpcbs_rmtcalllist_ptr*);
extern  uint32_t zdr_rpcb_stat (ZDR *, rpcb_stat*);
extern  uint32_t zdr_pmap4_stat_byvers (ZDR *, pmap4_stat_byvers);
extern  uint32_t zdr_rpcb_entry (ZDR *, rpcb_entry*);
extern  uint32_t zdr_rpcb_entry_list (ZDR *, rpcb_entry_list*);
extern  uint32_t zdr_pmap4_entry_list_ptr (ZDR *, pmap4_entry_list_ptr*);
extern  uint32_t zdr_PMAP2SETargs (ZDR *, PMAP2SETargs*);
extern  uint32_t zdr_PMAP2UNSETargs (ZDR *, PMAP2UNSETargs*);
extern  uint32_t zdr_PMAP2GETPORTargs (ZDR *, PMAP2GETPORTargs*);
extern  uint32_t zdr_PMAP2CALLITargs (ZDR *, PMAP2CALLITargs*);
extern  uint32_t zdr_PMAP2CALLITres (ZDR *, PMAP2CALLITres*);
extern  uint32_t zdr_PMAP2DUMPres (ZDR *, PMAP2DUMPres*);
extern  uint32_t zdr_PMAP3SETargs (ZDR *, PMAP3SETargs*);
extern  uint32_t zdr_PMAP3UNSETargs (ZDR *, PMAP3UNSETargs*);
extern  uint32_t zdr_PMAP3GETADDRargs (ZDR *, PMAP3GETADDRargs*);
extern  uint32_t zdr_PMAP3GETADDRres (ZDR *, PMAP3GETADDRres*);
extern  uint32_t zdr_PMAP3DUMPres (ZDR *, PMAP3DUMPres*);
extern  uint32_t zdr_PMAP3CALLITargs (ZDR *, PMAP3CALLITargs*);
extern  uint32_t zdr_PMAP3CALLITres (ZDR *, PMAP3CALLITres*);
extern  uint32_t zdr_PMAP3UADDR2TADDRargs (ZDR *, PMAP3UADDR2TADDRargs*);
extern  uint32_t zdr_PMAP3UADDR2TADDRres (ZDR *, PMAP3UADDR2TADDRres*);
extern  uint32_t zdr_PMAP3TADDR2UADDRargs (ZDR *, PMAP3TADDR2UADDRargs*);
extern  uint32_t zdr_PMAP3TADDR2UADDRres (ZDR *, PMAP3TADDR2UADDRres*);
extern  uint32_t zdr_PMAP4SETargs (ZDR *, PMAP4SETargs*);
extern  uint32_t zdr_PMAP4UNSETargs (ZDR *, PMAP4UNSETargs*);
extern  uint32_t zdr_PMAP4GETADDRargs (ZDR *, PMAP4GETADDRargs*);
extern  uint32_t zdr_PMAP4GETADDRres (ZDR *, PMAP4GETADDRres*);
extern  uint32_t zdr_PMAP4DUMPres (ZDR *, PMAP4DUMPres*);
extern  uint32_t zdr_PMAP4BCASTargs (ZDR *, PMAP4BCASTargs*);
extern  uint32_t zdr_PMAP4BCASTres (ZDR *, PMAP4BCASTres*);
extern  uint32_t zdr_PMAP4UADDR2TADDRargs (ZDR *, PMAP4UADDR2TADDRargs*);
extern  uint32_t zdr_PMAP4UADDR2TADDRres (ZDR *, PMAP4UADDR2TADDRres*);
extern  uint32_t zdr_PMAP4TADDR2UADDRargs (ZDR *, PMAP4TADDR2UADDRargs*);
extern  uint32_t zdr_PMAP4TADDR2UADDRres (ZDR *, PMAP4TADDR2UADDRres*);
extern  uint32_t zdr_PMAP4GETVERSADDRargs (ZDR *, PMAP4GETVERSADDRargs*);
extern  uint32_t zdr_PMAP4GETVERSADDRres (ZDR *, PMAP4GETVERSADDRres*);
extern  uint32_t zdr_PMAP4INDIRECTargs (ZDR *, PMAP4INDIRECTargs*);
extern  uint32_t zdr_PMAP4INDIRECTres (ZDR *, PMAP4INDIRECTres*);
extern  uint32_t zdr_PMAP4GETSTATres (ZDR *, PMAP4GETSTATres);
extern  uint32_t zdr_PMAP4GETADDRLISTargs (ZDR *, PMAP4GETADDRLISTargs*);
extern  uint32_t zdr_PMAP4GETADDRLISTres (ZDR *, PMAP4GETADDRLISTres*);

#else /* K&R C */
extern uint32_t zdr_pmap2_mapping ();
extern uint32_t zdr_pmap2_call_args ();
extern uint32_t zdr_pmap2_call_result ();
extern uint32_t zdr_pmap2_mapping_list ();
extern uint32_t zdr_pmap2_dump_result ();
extern uint32_t zdr_pmap3_string_result ();
extern uint32_t zdr_pmap3_mapping ();
extern uint32_t zdr_pmap3_mapping_list ();
extern uint32_t zdr_pmap3_dump_result ();
extern uint32_t zdr_pmap3_call_args ();
extern uint32_t zdr_rpcb_rmtcallres ();
extern uint32_t zdr_pmap3_netbuf ();
extern uint32_t zdr_pmap4_string_result ();
extern uint32_t zdr_pmap4_mapping ();
extern uint32_t zdr_pmap4_mapping_list ();
extern uint32_t zdr_pmap4_dump_result ();
extern uint32_t zdr_pmap4_bcast_args ();
extern uint32_t zdr_pmap4_netbuf ();
extern uint32_t zdr_pmap4_indirect_args ();
extern uint32_t zdr_rpcbs_addrlist ();
extern uint32_t zdr_rpcbs_rmtcalllist ();
extern uint32_t zdr_rpcbs_proc ();
extern uint32_t zdr_rpcbs_addrlist_ptr ();
extern uint32_t zdr_rpcbs_rmtcalllist_ptr ();
extern uint32_t zdr_rpcb_stat ();
extern uint32_t zdr_pmap4_stat_byvers ();
extern uint32_t zdr_rpcb_entry ();
extern uint32_t zdr_rpcb_entry_list ();
extern uint32_t zdr_pmap4_entry_list_ptr ();
extern uint32_t zdr_PMAP2SETargs ();
extern uint32_t zdr_PMAP2UNSETargs ();
extern uint32_t zdr_PMAP2GETPORTargs ();
extern uint32_t zdr_PMAP2CALLITargs ();
extern uint32_t zdr_PMAP2CALLITres ();
extern uint32_t zdr_PMAP2DUMPres ();
extern uint32_t zdr_PMAP3SETargs ();
extern uint32_t zdr_PMAP3UNSETargs ();
extern uint32_t zdr_PMAP3GETADDRargs ();
extern uint32_t zdr_PMAP3GETADDRres ();
extern uint32_t zdr_PMAP3DUMPres ();
extern uint32_t zdr_PMAP3CALLITargs ();
extern uint32_t zdr_PMAP3CALLITres ();
extern uint32_t zdr_PMAP3UADDR2TADDRargs ();
extern uint32_t zdr_PMAP3UADDR2TADDRres ();
extern uint32_t zdr_PMAP3TADDR2UADDRargs ();
extern uint32_t zdr_PMAP3TADDR2UADDRres ();
extern uint32_t zdr_PMAP4SETargs ();
extern uint32_t zdr_PMAP4UNSETargs ();
extern uint32_t zdr_PMAP4GETADDRargs ();
extern uint32_t zdr_PMAP4GETADDRres ();
extern uint32_t zdr_PMAP4DUMPres ();
extern uint32_t zdr_PMAP4BCASTargs ();
extern uint32_t zdr_PMAP4BCASTres ();
extern uint32_t zdr_PMAP4UADDR2TADDRargs ();
extern uint32_t zdr_PMAP4UADDR2TADDRres ();
extern uint32_t zdr_PMAP4TADDR2UADDRargs ();
extern uint32_t zdr_PMAP4TADDR2UADDRres ();
extern uint32_t zdr_PMAP4GETVERSADDRargs ();
extern uint32_t zdr_PMAP4GETVERSADDRres ();
extern uint32_t zdr_PMAP4INDIRECTargs ();
extern uint32_t zdr_PMAP4INDIRECTres ();
extern uint32_t zdr_PMAP4GETSTATres ();
extern uint32_t zdr_PMAP4GETADDRLISTargs ();
extern uint32_t zdr_PMAP4GETADDRLISTres ();

#endif /* K&R C */

#ifdef __cplusplus
}
#endif

#endif /* !_PORTMAP_H_RPCGEN */
