aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.h
blob: fc103233862b4c0eade4853cb75f6719fbd8b8db (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
32
33
34
/* engine.h - manages the linking and copying of configs ---------------*- C -*-
 *
 * This file is part of ck, the config keeper
 *
 * -----------------------------------------------------------------------------
 *
 * Copyright (C) 2018  Anastasis Grammenos
 * GPLv3 (see LICENCE for the full notice)
 *
 * -----------------------------------------------------------------------------
 *
 * The functions in here are responsible for manipulating
 * the file structure of the system and creating the links.
 *
 * It makes use of some util functions that wrap the actual
 * function calls to linux functions
 *
 * After a call to an engine_*() function one has to check
 * engine_err_message() to check for errors
 *
 * -------------------------------------------------------------------------- */
#include "actions.h"
#include "ckutil.h"

/* if engine_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 engine_err_message(char *err);


extern void engine_add_make_link(const AddOpt *opt,
                                 const Conf *conf);