ZDR: New builtin replacement for RPC/XDR called ZDR
[deb_libnfs.git] / portmap / libnfs-raw-portmap.h
CommitLineData
763cd6e3
RS
1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _PORTMAP_H_RPCGEN
7#define _PORTMAP_H_RPCGEN
8
9
10
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define PMAP_PORT 111
17
18struct pmap_mapping {
19 u_int prog;
20 u_int vers;
21 u_int prot;
22 u_int port;
23};
24typedef struct pmap_mapping pmap_mapping;
25
26struct pmap_call_args {
27 u_int prog;
28 u_int vers;
29 u_int proc;
30 struct {
31 u_int args_len;
32 char *args_val;
33 } args;
34};
35typedef struct pmap_call_args pmap_call_args;
36
37struct pmap_call_result {
38 u_int port;
39 struct {
40 u_int res_len;
41 char *res_val;
42 } res;
43};
44typedef struct pmap_call_result pmap_call_result;
45
46#define PMAP_PROGRAM 100000
47#define PMAP_V2 2
48
49#if defined(__STDC__) || defined(__cplusplus)
50#define PMAP_NULL 0
51extern void * pmap_null_2(void *, CLIENT *);
52extern void * pmap_null_2_svc(void *, struct svc_req *);
53#define PMAP_SET 1
54extern bool_t * pmap_set_2(pmap_mapping *, CLIENT *);
55extern bool_t * pmap_set_2_svc(pmap_mapping *, struct svc_req *);
56#define PMAP_UNSET 2
57extern bool_t * pmap_unset_2(pmap_mapping *, CLIENT *);
58extern bool_t * pmap_unset_2_svc(pmap_mapping *, struct svc_req *);
59#define PMAP_GETPORT 3
60extern u_int * pmap_getport_2(pmap_mapping *, CLIENT *);
61extern u_int * pmap_getport_2_svc(pmap_mapping *, struct svc_req *);
62#define PMAP_CALLIT 5
63extern pmap_call_result * pmap_callit_2(pmap_call_args *, CLIENT *);
64extern pmap_call_result * pmap_callit_2_svc(pmap_call_args *, struct svc_req *);
65extern int pmap_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
66
67#else /* K&R C */
68#define PMAP_NULL 0
69extern void * pmap_null_2();
70extern void * pmap_null_2_svc();
71#define PMAP_SET 1
72extern bool_t * pmap_set_2();
73extern bool_t * pmap_set_2_svc();
74#define PMAP_UNSET 2
75extern bool_t * pmap_unset_2();
76extern bool_t * pmap_unset_2_svc();
77#define PMAP_GETPORT 3
78extern u_int * pmap_getport_2();
79extern u_int * pmap_getport_2_svc();
80#define PMAP_CALLIT 5
81extern pmap_call_result * pmap_callit_2();
82extern pmap_call_result * pmap_callit_2_svc();
83extern int pmap_program_2_freeresult ();
84#endif /* K&R C */
85
86/* the zdr functions */
87
88#if defined(__STDC__) || defined(__cplusplus)
89extern bool_t zdr_pmap_mapping (ZDR *, pmap_mapping*);
90extern bool_t zdr_pmap_call_args (ZDR *, pmap_call_args*);
91extern bool_t zdr_pmap_call_result (ZDR *, pmap_call_result*);
92
93#else /* K&R C */
94extern bool_t zdr_pmap_mapping ();
95extern bool_t zdr_pmap_call_args ();
96extern bool_t zdr_pmap_call_result ();
97
98#endif /* K&R C */
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif /* !_PORTMAP_H_RPCGEN */