summaryrefslogtreecommitdiff
path: root/metastore.h
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-09-06 01:19:11 +0200
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-09-06 01:19:11 +0200
commit8bea7c6955d3c6b39cb28403be38e6f278113606 (patch)
tree91643a119da65146945687b228b4f4b5869eb773 /metastore.h
parent9ff6ae1499b2744b70ca95fdfe0523f695c9f6f9 (diff)
Simplify code performing actions. Remove duplicated code.
Diffstat (limited to 'metastore.h')
-rw-r--r--metastore.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/metastore.h b/metastore.h
index d3bd55f..9dbd19e 100644
--- a/metastore.h
+++ b/metastore.h
@@ -30,9 +30,13 @@
#define METAFILE "./.metadata"
/* Utility defines for the action to take */
-#define ACTION_DIFF 0x01
-#define ACTION_SAVE 0x02
-#define ACTION_APPLY 0x04
-#define ACTION_HELP 0x08
+#define ACTION_APPLY 0x01
+#define ACTION_DIFF 0x02
+#define ACTION_SAVE 0x10
+#define ACTION_HELP 0x80
+
+/* Action masks */
+#define ACTIONS_READING 0x07
+#define ACTIONS_WRITING 0x70
#endif /* METASTORE_H */