ZDR: New builtin replacement for RPC/XDR called ZDR
[deb_libnfs.git] / rquota / libnfs-raw-rquota.h
CommitLineData
763cd6e3
RS
1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _RQUOTA_H_RPCGEN
7#define _RQUOTA_H_RPCGEN
8
9
10
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define RQUOTAPATHLEN 1024
17
18enum rquotastat {
19 RQUOTA_OK = 1,
20 RQUOTA_NOQUOTA = 2,
21 RQUOTA_EPERM = 3,
22};
23typedef enum rquotastat rquotastat;
24
25typedef char *exportpath;
26
27struct GETQUOTA1args {
28 exportpath export;
29 int uid;
30};
31typedef struct GETQUOTA1args GETQUOTA1args;
32
33enum quotatype {
34 RQUOTA_TYPE_UID = 0,
35 RQUOTA_TYPE_GID = 1,
36};
37typedef enum quotatype quotatype;
38
39struct GETQUOTA2args {
40 exportpath export;
41 quotatype type;
42 int uid;
43};
44typedef struct GETQUOTA2args GETQUOTA2args;
45
46struct GETQUOTA1res_ok {
47 int bsize;
48 int active;
49 int bhardlimit;
50 int bsoftlimit;
51 int curblocks;
52 int fhardlimit;
53 int fsoftlimit;
54 int curfiles;
55 int btimeleft;
56 int ftimeleft;
57};
58typedef struct GETQUOTA1res_ok GETQUOTA1res_ok;
59
60struct GETQUOTA1res {
61 rquotastat status;
62 union {
63 GETQUOTA1res_ok quota;
64 } GETQUOTA1res_u;
65};
66typedef struct GETQUOTA1res GETQUOTA1res;
67
68#define RQUOTA_PROGRAM 100011
69#define RQUOTA_V1 1
70
71#if defined(__STDC__) || defined(__cplusplus)
72#define RQUOTA1_NULL 0
73extern void * rquota1_null_1(void *, CLIENT *);
74extern void * rquota1_null_1_svc(void *, struct svc_req *);
75#define RQUOTA1_GETQUOTA 1
76extern GETQUOTA1res * rquota1_getquota_1(GETQUOTA1args *, CLIENT *);
77extern GETQUOTA1res * rquota1_getquota_1_svc(GETQUOTA1args *, struct svc_req *);
78#define RQUOTA1_GETACTIVEQUOTA 2
79extern GETQUOTA1res * rquota1_getactivequota_1(GETQUOTA1args *, CLIENT *);
80extern GETQUOTA1res * rquota1_getactivequota_1_svc(GETQUOTA1args *, struct svc_req *);
81extern int rquota_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
82
83#else /* K&R C */
84#define RQUOTA1_NULL 0
85extern void * rquota1_null_1();
86extern void * rquota1_null_1_svc();
87#define RQUOTA1_GETQUOTA 1
88extern GETQUOTA1res * rquota1_getquota_1();
89extern GETQUOTA1res * rquota1_getquota_1_svc();
90#define RQUOTA1_GETACTIVEQUOTA 2
91extern GETQUOTA1res * rquota1_getactivequota_1();
92extern GETQUOTA1res * rquota1_getactivequota_1_svc();
93extern int rquota_program_1_freeresult ();
94#endif /* K&R C */
95#define RQUOTA_V2 2
96
97#if defined(__STDC__) || defined(__cplusplus)
98#define RQUOTA2_NULL 0
99extern void * rquota2_null_2(void *, CLIENT *);
100extern void * rquota2_null_2_svc(void *, struct svc_req *);
101#define RQUOTA2_GETQUOTA 1
102extern GETQUOTA1res * rquota2_getquota_2(GETQUOTA2args *, CLIENT *);
103extern GETQUOTA1res * rquota2_getquota_2_svc(GETQUOTA2args *, struct svc_req *);
104#define RQUOTA2_GETACTIVEQUOTA 2
105extern GETQUOTA1res * rquota2_getactivequota_2(GETQUOTA2args *, CLIENT *);
106extern GETQUOTA1res * rquota2_getactivequota_2_svc(GETQUOTA2args *, struct svc_req *);
107extern int rquota_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
108
109#else /* K&R C */
110#define RQUOTA2_NULL 0
111extern void * rquota2_null_2();
112extern void * rquota2_null_2_svc();
113#define RQUOTA2_GETQUOTA 1
114extern GETQUOTA1res * rquota2_getquota_2();
115extern GETQUOTA1res * rquota2_getquota_2_svc();
116#define RQUOTA2_GETACTIVEQUOTA 2
117extern GETQUOTA1res * rquota2_getactivequota_2();
118extern GETQUOTA1res * rquota2_getactivequota_2_svc();
119extern int rquota_program_2_freeresult ();
120#endif /* K&R C */
121
122/* the zdr functions */
123
124#if defined(__STDC__) || defined(__cplusplus)
125extern bool_t zdr_rquotastat (ZDR *, rquotastat*);
126extern bool_t zdr_exportpath (ZDR *, exportpath*);
127extern bool_t zdr_GETQUOTA1args (ZDR *, GETQUOTA1args*);
128extern bool_t zdr_quotatype (ZDR *, quotatype*);
129extern bool_t zdr_GETQUOTA2args (ZDR *, GETQUOTA2args*);
130extern bool_t zdr_GETQUOTA1res_ok (ZDR *, GETQUOTA1res_ok*);
131extern bool_t zdr_GETQUOTA1res (ZDR *, GETQUOTA1res*);
132
133#else /* K&R C */
134extern bool_t zdr_rquotastat ();
135extern bool_t zdr_exportpath ();
136extern bool_t zdr_GETQUOTA1args ();
137extern bool_t zdr_quotatype ();
138extern bool_t zdr_GETQUOTA2args ();
139extern bool_t zdr_GETQUOTA1res_ok ();
140extern bool_t zdr_GETQUOTA1res ();
141
142#endif /* K&R C */
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif /* !_RQUOTA_H_RPCGEN */