summaryrefslogtreecommitdiff
path: root/src/common/unionfs.h
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2008-12-15 17:03:00 -0800
committerslioch <slioch@eng-140.vyatta.com>2008-12-15 17:03:00 -0800
commit5da26e172a8c1ed5201527aefddabd6e277e5c03 (patch)
tree17b9536117774b0dfd76969b1b3b0aed82c24117 /src/common/unionfs.h
parent9ed9edcfe9aef3db9306a0d2b7c24f73831b1149 (diff)
downloadvyatta-cfg-5da26e172a8c1ed5201527aefddabd6e277e5c03.tar.gz
vyatta-cfg-5da26e172a8c1ed5201527aefddabd6e277e5c03.zip
initial checkin of new commit code--building but does not replace original commit. New commit may be accessed through
my_commit2 binary.
Diffstat (limited to 'src/common/unionfs.h')
-rw-r--r--src/common/unionfs.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/common/unionfs.h b/src/common/unionfs.h
new file mode 100644
index 0000000..098ac41
--- /dev/null
+++ b/src/common/unionfs.h
@@ -0,0 +1,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__