aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-11-18 20:58:35 +0200
committergramanas <anastasis.gramm2@gmail.com>2018-11-18 20:58:35 +0200
commit7d10e2377b01ac3e38b412f6bc2fa2e384804057 (patch)
treed89d0139b17786496e02335412114e2f97f82594 /src/actions.h
parenta9df05320a071112a41654abc761ee1389400782 (diff)
downloadck-7d10e2377b01ac3e38b412f6bc2fa2e384804057.tar.gz
ck-7d10e2377b01ac3e38b412f6bc2fa2e384804057.tar.bz2
ck-7d10e2377b01ac3e38b412f6bc2fa2e384804057.zip
Update edit and add edit test
Diffstat (limited to 'src/actions.h')
-rw-r--r--src/actions.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/actions.h b/src/actions.h
index 881fe9d..60b9645 100644
--- a/src/actions.h
+++ b/src/actions.h
@@ -31,7 +31,6 @@ enum AddOptErrors {
};
typedef enum AddOptErrors AddOptErr;
-typedef struct AddOptions AddOpt;
struct AddOptions {
char *progName;
char confPath[STR_L];
@@ -39,6 +38,7 @@ struct AddOptions {
int prime;
AddOptErr err;
};
+typedef struct AddOptions AddOpt;
enum ListTypes {
LT_PATH,
@@ -56,7 +56,6 @@ enum ListShowTypes {
};
typedef enum ListShowTypes ListShowType;
-typedef struct ListOptions ListOpt;
struct ListOptions {
ListType _lt;
ListShowType _lst;
@@ -65,6 +64,17 @@ struct ListOptions {
int bName;
int err;
};
+typedef struct ListOptions ListOpt;
+
+struct EditOptions {
+ char *pName;
+ char *cBasename;
+ char *editor;
+ char *cmd;
+ int sudo;
+ int err;
+};
+typedef struct EditOptions EditOpt;
/**************/
/* PRINT HELP */