summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2p/e2p.h
diff options
context:
space:
mode:
authorMike Frysinger2005-05-07 07:14:41 +0000
committerMike Frysinger2005-05-07 07:14:41 +0000
commit548ffd49a346a699ab64bd2659420d3ddbaeea6b (patch)
tree4f5be5e56a345fb02590a0dfb9679297c2275fd7 /e2fsprogs/e2p/e2p.h
parentba3a01f5e09102a2ed4392dc379d1879eb5b573f (diff)
downloadbusybox-548ffd49a346a699ab64bd2659420d3ddbaeea6b.zip
busybox-548ffd49a346a699ab64bd2659420d3ddbaeea6b.tar.gz
patch by Tito which unifies common get/set functions into 1 get/set function and cuts down on the size used significantly :)
Diffstat (limited to 'e2fsprogs/e2p/e2p.h')
-rw-r--r--e2fsprogs/e2p/e2p.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/e2fsprogs/e2p/e2p.h b/e2fsprogs/e2p/e2p.h
index d208b46..78930ec 100644
--- a/e2fsprogs/e2p/e2p.h
+++ b/e2fsprogs/e2p/e2p.h
@@ -13,11 +13,18 @@
#define PFOPT_LONG 1 /* Must be 1 for compatibility with `int long_format'. */
+/*int fgetversion (const char * name, unsigned long * version);*/
+/*int fsetversion (const char * name, unsigned long version);*/
+int fgetsetversion(const char * name, unsigned long * get_version, unsigned long set_version);
+#define fgetversion(name, version) fgetsetversion(name, version, 0)
+#define fsetversion(name, version) fgetsetversion(name, NULL, version)
+
+/*int fgetflags (const char * name, unsigned long * flags);*/
+/*int fsetflags (const char * name, unsigned long flags);*/
+int fgetsetflags(const char * name, unsigned long * get_flags, unsigned long set_flags);
+#define fgetflags(name, flags) fgetsetflags(name, flags, 0)
+#define fsetflags(name, flags) fgetsetflags(name, NULL, flags)
-int fgetflags (const char * name, unsigned long * flags);
-int fgetversion (const char * name, unsigned long * version);
-int fsetflags (const char * name, unsigned long flags);
-int fsetversion (const char * name, unsigned long version);
int getflags (int fd, unsigned long * flags);
int getversion (int fd, unsigned long * version);
int iterate_on_dir (const char * dir_name,