aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/history.h7
-rw-r--r--include/path.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/include/history.h b/include/history.h
index a4966e2..8b7a4bb 100644
--- a/include/history.h
+++ b/include/history.h
@@ -3,6 +3,8 @@
#include <string>
#include <vector>
+#include "path.h"
+
namespace ov4
{
@@ -15,4 +17,9 @@ void clear_history();
std::size_t get_last_index();
+std::string get_default_history_path();
+
+void load_history(const std::string &path = get_default_history_path());
+void save_history(const std::string &path = get_default_history_path());
+
}
diff --git a/include/path.h b/include/path.h
index c5f0d2b..d168581 100644
--- a/include/path.h
+++ b/include/path.h
@@ -7,8 +7,6 @@
#include <iterator>
#include <iostream>
-#include "all.h"
-
namespace ov4
{
@@ -19,4 +17,6 @@ std::string path_unifier(const std::string &s, bool is_cmd = false);
std::string get_current_dir();
int set_current_dir(const std::string &s);
+std::string get_home_dir();
+
}