From 6f319efab77e88e06acb689923ad619bf4c78304 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 15 Apr 2018 06:15:06 +0300 Subject: variable conf --- src/actionparser.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/actionparser.h') 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 }; -- cgit v1.2.3