diff options
author | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-09-19 23:59:37 +0300 |
---|---|---|
committer | Anastasis Grammenos <anastasis.gramm2@gmail.com> | 2018-09-19 23:59:37 +0300 |
commit | 22fca0324c162fa9a6abc5192aea2b5453c057b5 (patch) | |
tree | b799fde22ee67221e69f8cf3c5445c0373a7cfca /src/actions.h | |
parent | 8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003 (diff) | |
download | ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.tar.gz ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.tar.bz2 ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.zip |
Add list action (no docs)
Diffstat (limited to 'src/actions.h')
-rw-r--r-- | src/actions.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/actions.h b/src/actions.h index a429a65..0e8d445 100644 --- a/src/actions.h +++ b/src/actions.h @@ -15,6 +15,7 @@ #ifndef ACTIONS_H #define ACTIONS_H +#include "ckutil.h" #include "actionparser.h" #include "confparser.h" @@ -38,10 +39,31 @@ enum AddOptErrors { typedef struct AddOptions AddOpt; struct AddOptions { char *progName; - char *confPath; + char confPath[STR_L]; int secret; int prime; AddOptErr err; }; +typedef enum ListTypes ListType; +enum ListTypes { + LT_PATH, + LT_PROGRAM, + LT_NONE +}; + +typedef enum ListShowTypes ListShowType; +enum ListShowTypes { + LST_PLAIN, + LST_LISP, + LST_PYTHON, +}; + +typedef struct ListOptions ListOpt; +struct ListOptions { + ListType _lt; + ListShowType _lst; + int err; +}; + #endif /* ACTIONS_H */ |