From 22fca0324c162fa9a6abc5192aea2b5453c057b5 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Wed, 19 Sep 2018 23:59:37 +0300 Subject: Add list action (no docs) --- src/actions.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/actions.h') 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 */ -- cgit v1.2.3