]> git.ozlabs.org Git - ccan/blob - ccan/nfs/rpc/portmap.h
Merge branch 'ronnie'
[ccan] / ccan / nfs / rpc / 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 #include <rpc/rpc.h>
10
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #define PMAP_PORT 111
17
18 struct mapping {
19         u_int prog;
20         u_int vers;
21         u_int prot;
22         u_int port;
23 };
24 typedef struct mapping mapping;
25
26 struct 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 call_args call_args;
36
37 #define PMAP_PROGRAM 100000
38 #define PMAP_V2 2
39
40 #if defined(__STDC__) || defined(__cplusplus)
41 #define PMAP_NULL 0
42 extern  void * pmap_null_2(void *, CLIENT *);
43 extern  void * pmap_null_2_svc(void *, struct svc_req *);
44 #define PMAP_SET 1
45 extern  bool_t * pmap_set_2(mapping *, CLIENT *);
46 extern  bool_t * pmap_set_2_svc(mapping *, struct svc_req *);
47 #define PMAP_UNSET 2
48 extern  bool_t * pmap_unset_2(mapping *, CLIENT *);
49 extern  bool_t * pmap_unset_2_svc(mapping *, struct svc_req *);
50 #define PMAP_GETPORT 3
51 extern  u_int * pmap_getport_2(mapping *, CLIENT *);
52 extern  u_int * pmap_getport_2_svc(mapping *, struct svc_req *);
53 extern int pmap_program_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
54
55 #else /* K&R C */
56 #define PMAP_NULL 0
57 extern  void * pmap_null_2();
58 extern  void * pmap_null_2_svc();
59 #define PMAP_SET 1
60 extern  bool_t * pmap_set_2();
61 extern  bool_t * pmap_set_2_svc();
62 #define PMAP_UNSET 2
63 extern  bool_t * pmap_unset_2();
64 extern  bool_t * pmap_unset_2_svc();
65 #define PMAP_GETPORT 3
66 extern  u_int * pmap_getport_2();
67 extern  u_int * pmap_getport_2_svc();
68 extern int pmap_program_2_freeresult ();
69 #endif /* K&R C */
70
71 /* the xdr functions */
72
73 #if defined(__STDC__) || defined(__cplusplus)
74 extern  bool_t xdr_mapping (XDR *, mapping*);
75 extern  bool_t xdr_call_args (XDR *, call_args*);
76
77 #else /* K&R C */
78 extern bool_t xdr_mapping ();
79 extern bool_t xdr_call_args ();
80
81 #endif /* K&R C */
82
83 #ifdef __cplusplus
84 }
85 #endif
86
87 #endif /* !_PORTMAP_H_RPCGEN */