summaryrefslogtreecommitdiff
path: root/src/common/common.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/common.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/common.h')
-rw-r--r--src/common/common.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/common/common.h b/src/common/common.h
new file mode 100644
index 0000000..c9cacc8
--- /dev/null
+++ b/src/common/common.h
@@ -0,0 +1,53 @@
+#ifndef __COMMON_H__
+#define __COMMON_H__
+
+#include "defs.h"
+#include "unionfs.h"
+
+
+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(char *path, boolean test_mode);
+
+/**
+ *
+ **/
+void
+common_commit_clean_temp_config(boolean test_mode);
+
+#endif //__COMMON_H__