aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks.h
blob: c165c9568ee49c6e6b2dc4cc887d12378b4145e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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