Merge branch 'zdr'
[deb_libnfs.git] / portmap / libnfs-raw-portmap.h
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
13 extern "C" {
14 #endif
15
16 #define PMAP_PORT 111
17
18 struct pmap_mapping {
19 u_int prog;
20 u_int vers;
21 u_int prot;
22 u_int port;
23 };
24 typedef struct pmap_mapping pmap_mapping;
25
26 struct 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 };
35 typedef struct pmap_call_args pmap_call_args;
36
37 struct pmap_call_result {
38 u_int port;
39 struct {
40 u_int res_len;
41 char *res_val;
42 } res;
43 };
44 typedef 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
51 extern void * pmap_null_2(void *, CLIENT *);
52 extern void * pmap_null_2_svc(void *, struct svc_req *);
53 #define PMAP_SET 1
54 extern bool_t * pmap_set_2(pmap_mapping *, CLIENT *);
55 extern bool_t * pmap_set_2_svc(pmap_mapping *, struct svc_req *);
56 #define PMAP_UNSET 2
57 extern bool_t * pmap_unset_2(pmap_mapping *, CLIENT *);
58 extern bool_t * pmap_unset_2_svc(pmap_mapping *, struct svc_req *);
59 #define PMAP_GETPORT 3
60 extern u_int * pmap_getport_2(pmap_mapping *, CLIENT *);
61 extern u_int * pmap_getport_2_svc(pmap_mapping *, struct svc_req *);
62 #define PMAP_CALLIT 5
63 extern pmap_call_result * pmap_callit_2(pmap_call_args *, CLIENT *);
64 extern pmap_call_result * pmap_callit_2_svc(pmap_call_args *, struct svc_req *);
65 extern int pmap_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
66
67 #else /* K&R C */
68 #define PMAP_NULL 0
69 extern void * pmap_null_2();
70 extern void * pmap_null_2_svc();
71 #define PMAP_SET 1
72 extern bool_t * pmap_set_2();
73 extern bool_t * pmap_set_2_svc();
74 #define PMAP_UNSET 2
75 extern bool_t * pmap_unset_2();
76 extern bool_t * pmap_unset_2_svc();
77 #define PMAP_GETPORT 3
78 extern u_int * pmap_getport_2();
79 extern u_int * pmap_getport_2_svc();
80 #define PMAP_CALLIT 5
81 extern pmap_call_result * pmap_callit_2();
82 extern pmap_call_result * pmap_callit_2_svc();
83 extern int pmap_program_2_freeresult ();
84 #endif /* K&R C */
85
86 /* the zdr functions */
87
88 #if defined(__STDC__) || defined(__cplusplus)
89 extern bool_t zdr_pmap_mapping (ZDR *, pmap_mapping*);
90 extern bool_t zdr_pmap_call_args (ZDR *, pmap_call_args*);
91 extern bool_t zdr_pmap_call_result (ZDR *, pmap_call_result*);
92
93 #else /* K&R C */
94 extern bool_t zdr_pmap_mapping ();
95 extern bool_t zdr_pmap_call_args ();
96 extern 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 */