aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-04-15 00:43:08 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-04-15 00:43:08 +0300
commitbc25e14b448edb9f41260a23cf6567e6632db267 (patch)
tree71362a1c8d369f3d0080baee5f98edb3439f3735 /src/checks.h
parent0168c10023f0040ae2fa31a212eb6d2e411eefb3 (diff)
downloadck-bc25e14b448edb9f41260a23cf6567e6632db267.tar.gz
ck-bc25e14b448edb9f41260a23cf6567e6632db267.tar.bz2
ck-bc25e14b448edb9f41260a23cf6567e6632db267.zip
dummy init done
action parser conf parser db layer
Diffstat (limited to 'src/checks.h')
-rw-r--r--src/checks.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/checks.h b/src/checks.h
new file mode 100644
index 0000000..c165c95
--- /dev/null
+++ b/src/checks.h
@@ -0,0 +1,31 @@
+/* optparser.h - Opt parser for ck -----------------------------*- C -*-
+ *
+ * This file is part of ck, the config keeper
+ *
+ * ---------------------------------------------------------------------
+ *
+ * The code here and in checks.c is responsible for checking
+ * if a database file is present and if the user has initialized
+ * ck before with correct VC_dir and SCRT_dir paths.
+ *
+ * It is called before the parsing of the user's arguments
+ * in order to make sure that everything is setup properly
+ * for the later operations.
+ *
+ * ------------------------------------------------------------------ */
+#ifndef CHECKS_H
+#define CHECKS_H
+
+typedef enum CheckResults CheckResult;
+enum CheckResults {
+ CR_OK,
+ CR_NO_CONFIG,
+ CR_WRONG_CONFIG,
+ CR_NO_DB
+};
+
+
+
+CheckResult doInitCheck();
+
+#endif // CHECKS_H