summaryrefslogtreecommitdiff
path: root/quotasys.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2013-10-02 23:10:49 +0200
committerJan Kara <jack@suse.cz>2013-10-03 11:48:39 +0200
commita58761459f7485f275ecca5fd26b9a63c33f1089 (patch)
tree2104160ece046eec6589809e0ac22d5f6118b62e /quotasys.h
parent246dd4960e6878f3ff2e1fe34ef978bcb21e8d03 (diff)
Add support for CVS and XML output formats to repquota(8)
JK: Fixup localization and handling of multiple output filesystems / types. Signed-off-by: Jonathan Overholt <jonathan@overholt.org> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'quotasys.h')
-rw-r--r--quotasys.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/quotasys.h b/quotasys.h
index 505ea77..5ca26e6 100644
--- a/quotasys.h
+++ b/quotasys.h
@@ -88,6 +88,12 @@ int name2fmt(char *str);
/* Convert quota format number to name */
char *fmt2name(int fmt);
+/* Convert output format name to number */
+int name2ofmt(char *str);
+
+/* Convert output format number to name */
+char *ofmt2name(int fmt);
+
/* Convert utility to kernel format numbers */
int util2kernfmt(int fmt);
@@ -168,4 +174,10 @@ struct mount_entry *get_next_mount(void);
/* Free all structures associated with mountpoints scan */
void end_mounts_scan(void);
+/* Quota output formats */
+#define QOF_ERROR -1
+#define QOF_DEFAULT 0
+#define QOF_CSV 1
+#define QOF_XML 2
+
#endif /* GUARD_QUOTASYS_H */