Initial commit to Gerrit
[profile/ivi/quota.git] / quotaops.h
1 #ifndef GUARD_QUOTAOPS_H
2 #define GUARD_QUOTAOPS_H
3
4 #include "quotaio.h"
5
6 struct dquot *getprivs(qid_t id, struct quota_handle ** handles, int quiet);
7 int putprivs(struct dquot * qlist, int flags);
8 int editprivs(char *tmpfile);
9 int writeprivs(struct dquot * qlist, int outfd, char *name, int quotatype);
10 int readprivs(struct dquot * qlist, int infd);
11 int writeindividualtimes(struct dquot * qlist, int outfd, char *name, int quotatype);
12 int readindividualtimes(struct dquot * qlist, int infd);
13 int writetimes(struct quota_handle ** handles, int outfd);
14 int readtimes(struct quota_handle ** handles, int infd);
15 void freeprivs(struct dquot * qlist);
16 void update_grace_times(struct dquot *q);
17
18 #endif /* GUARD_QUOTAOPS_H */