libkvm - Update for new dumps & minidumps
[dragonfly.git] / include / rpcsvc / rquota.h
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 #include <rpc/rpc.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define RQ_PATHLEN 1024
16
17 struct getquota_args {
18         char *gqa_pathp;
19         int gqa_uid;
20 };
21 typedef struct getquota_args getquota_args;
22
23 struct rquota {
24         int rq_bsize;
25         bool_t rq_active;
26         u_int rq_bhardlimit;
27         u_int rq_bsoftlimit;
28         u_int rq_curblocks;
29         u_int rq_fhardlimit;
30         u_int rq_fsoftlimit;
31         u_int rq_curfiles;
32         u_int rq_btimeleft;
33         u_int rq_ftimeleft;
34 };
35 typedef struct rquota rquota;
36
37 enum gqr_status {
38         Q_OK = 1,
39         Q_NOQUOTA = 2,
40         Q_EPERM = 3
41 };
42 typedef enum gqr_status gqr_status;
43
44 struct getquota_rslt {
45         gqr_status status;
46         union {
47                 rquota gqr_rquota;
48         } getquota_rslt_u;
49 };
50 typedef struct getquota_rslt getquota_rslt;
51
52 #define RQUOTAPROG ((unsigned long)(100011))
53 #define RQUOTAVERS ((unsigned long)(1))
54
55 extern  void rquotaprog_1(struct svc_req *rqstp, SVCXPRT *transp);
56 #define RQUOTAPROC_GETQUOTA ((unsigned long)(1))
57 extern  getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
58 extern  getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
59 #define RQUOTAPROC_GETACTIVEQUOTA ((unsigned long)(2))
60 extern  getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
61 extern  getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
62 extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
63
64 /* the xdr functions */
65 extern  bool_t xdr_getquota_args(XDR *, getquota_args*);
66 extern  bool_t xdr_rquota(XDR *, rquota*);
67 extern  bool_t xdr_gqr_status(XDR *, gqr_status*);
68 extern  bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #endif /* !_RQUOTA_H_RPCGEN */