nfs-ganesha 1.4

rquota.h

Go to the documentation of this file.
00001 /*
00002  * Please do not edit this file.
00003  * It was generated using rpcgen.
00004  */
00005 
00006 #ifndef _RQUOTA_H_RPCGEN
00007 #define _RQUOTA_H_RPCGEN
00008 
00009 #ifndef _USE_SWIG
00010 #include "ganesha_rpc.h"
00011 #endif                          /* SWIG */
00012 
00013 #ifdef _SOLARIS
00014 #include "solaris_port.h"
00015 #endif
00016 #include "extended_types.h"
00017 
00018 #ifdef __cplusplus
00019 extern "C"
00020 {
00021 #endif
00022 
00023 #define RQ_PATHLEN 1024
00024 
00025   struct sq_dqblk
00026   {
00027     u_int rq_bhardlimit;
00028     u_int rq_bsoftlimit;
00029     u_int rq_curblocks;
00030     u_int rq_fhardlimit;
00031     u_int rq_fsoftlimit;
00032     u_int rq_curfiles;
00033     u_int rq_btimeleft;
00034     u_int rq_ftimeleft;
00035   };
00036   typedef struct sq_dqblk sq_dqblk;
00037 
00038   struct getquota_args
00039   {
00040     char *gqa_pathp;
00041     int gqa_uid;
00042   };
00043   typedef struct getquota_args getquota_args;
00044 
00045   struct setquota_args
00046   {
00047     int sqa_qcmd;
00048     char *sqa_pathp;
00049     int sqa_id;
00050     sq_dqblk sqa_dqblk;
00051   };
00052   typedef struct setquota_args setquota_args;
00053 
00054   struct ext_getquota_args
00055   {
00056     char *gqa_pathp;
00057     int gqa_type;
00058     int gqa_id;
00059   };
00060   typedef struct ext_getquota_args ext_getquota_args;
00061 
00062   struct ext_setquota_args
00063   {
00064     int sqa_qcmd;
00065     char *sqa_pathp;
00066     int sqa_id;
00067     int sqa_type;
00068     sq_dqblk sqa_dqblk;
00069   };
00070   typedef struct ext_setquota_args ext_setquota_args;
00071 
00072   struct rquota
00073   {
00074     int rq_bsize;
00075     bool_t rq_active;
00076     u_int rq_bhardlimit;
00077     u_int rq_bsoftlimit;
00078     u_int rq_curblocks;
00079     u_int rq_fhardlimit;
00080     u_int rq_fsoftlimit;
00081     u_int rq_curfiles;
00082     u_int rq_btimeleft;
00083     u_int rq_ftimeleft;
00084   };
00085   typedef struct rquota rquota;
00086 
00087   enum qr_status
00088   {
00089     Q_OK = 1,
00090     Q_NOQUOTA = 2,
00091     Q_EPERM = 3,
00092   };
00093   typedef enum qr_status qr_status;
00094 
00095   struct getquota_rslt
00096   {
00097     qr_status status;
00098     union
00099     {
00100       rquota gqr_rquota;
00101     } getquota_rslt_u;
00102   };
00103   typedef struct getquota_rslt getquota_rslt;
00104 
00105   struct setquota_rslt
00106   {
00107     qr_status status;
00108     union
00109     {
00110       rquota sqr_rquota;
00111     } setquota_rslt_u;
00112   };
00113   typedef struct setquota_rslt setquota_rslt;
00114 
00115 #define RQUOTAPROG 100011
00116 #define RQUOTAVERS 1
00117 
00118 #if defined(__STDC__) || defined(__cplusplus)
00119 #define RQUOTAPROC_GETQUOTA 1
00120   extern getquota_rslt *rquotaproc_getquota_1(getquota_args *, CLIENT *);
00121   extern getquota_rslt *rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
00122 #define RQUOTAPROC_GETACTIVEQUOTA 2
00123   extern getquota_rslt *rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
00124   extern getquota_rslt *rquotaproc_getactivequota_1_svc(getquota_args *,
00125                                                         struct svc_req *);
00126 #define RQUOTAPROC_SETQUOTA 3
00127   extern setquota_rslt *rquotaproc_setquota_1(setquota_args *, CLIENT *);
00128   extern setquota_rslt *rquotaproc_setquota_1_svc(setquota_args *, struct svc_req *);
00129 #define RQUOTAPROC_SETACTIVEQUOTA 4
00130   extern setquota_rslt *rquotaproc_setactivequota_1(setquota_args *, CLIENT *);
00131   extern setquota_rslt *rquotaproc_setactivequota_1_svc(setquota_args *,
00132                                                         struct svc_req *);
00133   extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
00134 
00135 #else                           /* K&R C */
00136 #define RQUOTAPROC_GETQUOTA 1
00137   extern getquota_rslt *rquotaproc_getquota_1();
00138   extern getquota_rslt *rquotaproc_getquota_1_svc();
00139 #define RQUOTAPROC_GETACTIVEQUOTA 2
00140   extern getquota_rslt *rquotaproc_getactivequota_1();
00141   extern getquota_rslt *rquotaproc_getactivequota_1_svc();
00142 #define RQUOTAPROC_SETQUOTA 3
00143   extern setquota_rslt *rquotaproc_setquota_1();
00144   extern setquota_rslt *rquotaproc_setquota_1_svc();
00145 #define RQUOTAPROC_SETACTIVEQUOTA 4
00146   extern setquota_rslt *rquotaproc_setactivequota_1();
00147   extern setquota_rslt *rquotaproc_setactivequota_1_svc();
00148   extern int rquotaprog_1_freeresult();
00149 #endif                          /* K&R C */
00150 #define EXT_RQUOTAVERS 2
00151 
00152 /* the xdr functions */
00153 
00154 #if defined(__STDC__) || defined(__cplusplus)
00155   extern bool_t xdr_sq_dqblk(XDR *, sq_dqblk *);
00156   extern bool_t xdr_getquota_args(XDR *, getquota_args *);
00157   extern bool_t xdr_setquota_args(XDR *, setquota_args *);
00158   extern bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args *);
00159   extern bool_t xdr_ext_setquota_args(XDR *, ext_setquota_args *);
00160   extern bool_t xdr_rquota(XDR *, rquota *);
00161   extern bool_t xdr_qr_status(XDR *, qr_status *);
00162   extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt *);
00163   extern bool_t xdr_setquota_rslt(XDR *, setquota_rslt *);
00164 
00165 #else                           /* K&R C */
00166   extern bool_t xdr_sq_dqblk();
00167   extern bool_t xdr_getquota_args();
00168   extern bool_t xdr_setquota_args();
00169   extern bool_t xdr_ext_getquota_args();
00170   extern bool_t xdr_ext_setquota_args();
00171   extern bool_t xdr_rquota();
00172   extern bool_t xdr_qr_status();
00173   extern bool_t xdr_getquota_rslt();
00174   extern bool_t xdr_setquota_rslt();
00175 
00176 #endif                          /* K&R C */
00177 
00178 #ifdef __cplusplus
00179 }
00180 #endif
00181 
00182 #endif                          /* !_RQUOTA_H_RPCGEN */