aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.h')
-rw-r--r--src/actions.h24
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 */