summaryrefslogtreecommitdiff
path: root/src/common/common.h
blob: 1a323ee95c8fabc43846dde579edfae481155ded (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef __COMMON_H__
#define __COMMON_H__

#include "defs.h"
#include "unionfs.h"

#ifdef __cplusplus
extern "C" {
#endif

boolean
execute(char *cmd);

/**
 *
 **/
GNode*
common_get_local_session_data();

/**
 * flushes local session
 **/
void
common_clear_local_session();

/**
 * brings over local session conf to main config
 **/
void
commmon_copy_local_to_main();

/**
 * sets system context for operation (i.e. hack for unionfs implementation)
 **/
void
common_set_context(char *cpath, char *dpath);

/**
 * sets system parent context for operation (i.e. hack for unionfs implementation)
 **/
void
common_set_parent_context(char *cpath, char *dpath);

/**
 *
 **/
void
common_commit_copy_to_live_config(GNode *root_node, boolean suppress_piecewise_copy, boolean test_mode);

/**
 *
 **/
void
common_commit_clean_temp_config(GNode *root_node, boolean test_mode);

#ifdef __cplusplus
}
#endif

#endif //__COMMON_H__