From 8bea7c6955d3c6b39cb28403be38e6f278113606 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Sun, 6 Sep 2015 01:19:11 +0200 Subject: Simplify code performing actions. Remove duplicated code. --- metastore.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'metastore.h') 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 */ -- cgit v1.2.1