aboutsummaryrefslogtreecommitdiffstats
path: root/src/actionparser.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-04-15 06:15:06 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-04-15 06:15:06 +0300
commit6f319efab77e88e06acb689923ad619bf4c78304 (patch)
tree8d13fc584108627efb5d6b769e64a690b7d9552a /src/actionparser.h
parentc42092733d664c29d3ac9084859f57ec463f72e3 (diff)
downloadck-6f319efab77e88e06acb689923ad619bf4c78304.tar.gz
ck-6f319efab77e88e06acb689923ad619bf4c78304.tar.bz2
ck-6f319efab77e88e06acb689923ad619bf4c78304.zip
variable conf
Diffstat (limited to 'src/actionparser.h')
-rw-r--r--src/actionparser.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/actionparser.h b/src/actionparser.h
index 97d9d52..a097464 100644
--- a/src/actionparser.h
+++ b/src/actionparser.h
@@ -38,13 +38,10 @@ enum ParseErrors {
typedef enum CkActions CkAction;
enum CkActions {
- CKA_INIT,
- CKA_ADD, // program, path, primary, secret
- CKA_DEL, // program regexp, if only programm, delete everything related
- CKA_EDIT, // program regexp, if only program, edit primary
- CKA_LIST, // list_type{tree,paths,programs}
- CKA_SEARCH, // search_mode, regexp
- CKA_HELP // help
+#define X(ACTION) \
+ CKA_##ACTION,
+ CK_ACTIONS
+#undef X
};
typedef enum OptParserResults ParseResult;
@@ -58,6 +55,7 @@ typedef struct UserOptions UserOpt;
struct UserOptions {
ParseError err;
CkAction action;
+ char *confDir;
int argc;
char *argv[10]; // action's options
};