]> git.ozlabs.org Git - ccan/blob - ccan/nfs/rpc/portmap.h
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / nfs / rpc / portmap.h
1 /* Licensed under GPLv3+ - see LICENSE file for details */
2 /*
3  * Please do not edit this file.
4  * It was generated using rpcgen.
5  */
6
7 #ifndef _PORTMAP_H_RPCGEN
8 #define _PORTMAP_H_RPCGEN
9
10 #include <rpc/rpc.h>
11
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #define PMAP_PORT 111
18
19 struct mapping {
20         u_int prog;
21         u_int vers;
22         u_int prot;
23         u_int port;
24 };
25 typedef struct mapping mapping;
26
27 struct call_args {
28         u_int prog;
29         u_int vers;
30         u_int proc;
31         struct {
32                 u_int args_len;
33                 char *args_val;
34         } args;
35 };
36 typedef struct call_args call_args;
37
38 #define PMAP_PROGRAM 100000
39 #define PMAP_V2 2
40
41 #if defined(__STDC__) || defined(__cplusplus)
42 #define PMAP_NULL 0
43 extern  void * pmap_null_2(void *, CLIENT *);
44 extern  void * pmap_null_2_svc(void *, struct svc_req *);
45 #define PMAP_SET 1
46 extern  bool_t * pmap_set_2(mapping *, CLIENT *);
47 extern  bool_t * pmap_set_2_svc(mapping *, struct svc_req *);
48 #define PMAP_UNSET 2
49 extern  bool_t * pmap_unset_2(mapping *, CLIENT *);
50 extern  bool_t * pmap_unset_2_svc(mapping *, struct svc_req *);
51 #define PMAP_GETPORT 3
52 extern  u_int * pmap_getport_2(mapping *, CLIENT *);
53 extern  u_int * pmap_getport_2_svc(mapping *, struct svc_req *);
54 extern int pmap_program_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
55
56 #else /* K&R C */
57 #define PMAP_NULL 0
58 extern  void * pmap_null_2();
59 extern  void * pmap_null_2_svc();
60 #define PMAP_SET 1
61 extern  bool_t * pmap_set_2();
62 extern  bool_t * pmap_set_2_svc();
63 #define PMAP_UNSET 2
64 extern  bool_t * pmap_unset_2();
65 extern  bool_t * pmap_unset_2_svc();
66 #define PMAP_GETPORT 3
67 extern  u_int * pmap_getport_2();
68 extern  u_int * pmap_getport_2_svc();
69 extern int pmap_program_2_freeresult ();
70 #endif /* K&R C */
71
72 /* the xdr functions */
73
74 #if defined(__STDC__) || defined(__cplusplus)
75 extern  bool_t xdr_mapping (XDR *, mapping*);
76 extern  bool_t xdr_call_args (XDR *, call_args*);
77
78 #else /* K&R C */
79 extern bool_t xdr_mapping ();
80 extern bool_t xdr_call_args ();
81
82 #endif /* K&R C */
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif /* !_PORTMAP_H_RPCGEN */