blob: 098ac41b61b70cdd64926f718b32f875483c0843 (
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
|
#ifndef __UNIONFS_HH__
#define __UNIONFS_HH__
#include <glib-2.0/glib.h>
#include <stdio.h>
#include "defs.h"
#include "../cli_val.h"
#include "../cli_objects.h"
/* names of VYATTA env vars */
#define ENV_EDIT_LEVEL "VYATTA_EDIT_LEVEL"
#define ENV_TEMPLATE_LEVEL "VYATTA_TEMPLATE_LEVEL"
#define ENV_A_DIR "VYATTA_ACTIVE_CONFIGURATION_DIR"
#define ENV_C_DIR "VYATTA_CHANGES_ONLY_DIR"
#define ENV_M_DIR "VYATTA_TEMP_CONFIG_DIR"
#define ENV_T_DIR "VYATTA_CONFIG_TEMPLATE"
#define ENV_TMP_DIR "VYATTA_CONFIG_TMP"
#define DEF_A_DIR "/opt/vyatta/config/active"
#define DEF_T_DIR "/opt/vyatta/share/ofr/template"
#define ENV_OLD_PS1 "VYATTA_OLD_PS1"
#define NODE_PRIORITY_FILE "/opt/vyatta/share/vyatta-cfg/priority"
#define NODE_TAG_FILE "node.tag"
#define VALUE_FILE "node.val"
#define MODIFIED_FILE ".modified"
#define DEF_FILE "def"
#define WHITEOUT_FILE ".wh.__dir_opaque"
#define DELETED_NODE ".wh."
#define MAX_LENGTH_DIR_PATH 1024
#define MAX_LENGTH_HELP_STR 1024
boolean
value_exists(char *path);
struct PriData {
unsigned long _pri;
gchar **_tok_str;
};
struct ValueData
{
boolean _leaf;
NODE_OPERATION _state;
};
#endif //__UNIONFS_HH__
|