aboutsummaryrefslogtreecommitdiffstats
path: root/src/actionhelper.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-05-08 16:44:05 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-05-08 16:44:05 +0300
commitfb7e3e1352aeca03909ae3720c8cae90fcd57186 (patch)
tree73ec2c99e3a8c578c1791e83a5ec74749a8316af /src/actionhelper.h
parent00faacfa1ba2af7dd6dbd441e0ede57029d92686 (diff)
downloadck-fb7e3e1352aeca03909ae3720c8cae90fcd57186.tar.gz
ck-fb7e3e1352aeca03909ae3720c8cae90fcd57186.tar.bz2
ck-fb7e3e1352aeca03909ae3720c8cae90fcd57186.zip
user args an now cklist type
Diffstat (limited to 'src/actionhelper.h')
-rw-r--r--src/actionhelper.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/actionhelper.h b/src/actionhelper.h
index 75ad0a7..2a47e79 100644
--- a/src/actionhelper.h
+++ b/src/actionhelper.h
@@ -1,4 +1,20 @@
+
+/* actionhelper.h - helper functions for ck actions --------------------*- C -*-
+ *
+ * This file is part of ck, the config keeper
+ *
+ * -----------------------------------------------------------------------------
+ *
+ * Copyright (C) 2018 Anastasis Grammenos
+ * GPLv3 (see LICENCE for the full notice)
+ *
+ * -----------------------------------------------------------------------------
+ *
+ *
+ * -------------------------------------------------------------------------- */
+#include "actions.h"
#include "ckutil.h"
+#include "cklist.h"
typedef enum edit_opt_return_code edit_rc;
enum edit_opt_return_code {
@@ -7,4 +23,13 @@ enum edit_opt_return_code {
ERC_ERR
};
-extern edit_rc edit_get_config_or_suggestions(const int argc, char **argv, char *ret);
+/* if add_err is set, return true
+ * along with a copy of the error message.
+ * Pass NULL if you don't care about the message */
+extern int add_err_message(char *err);
+
+
+extern void add_make_link(const AddOpt *opt,
+ const Conf *conf);
+
+extern edit_rc edit_get_config_or_suggestions(cklist* args, char *ret);