aboutsummaryrefslogtreecommitdiff
path: root/include/history.h
blob: 8b7a4bb3b590541c5ce015d7e050492ee554567a (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

#pragma once

#include <string>
#include <vector>

#include "path.h"

namespace ov4
{

inline std::vector<std::string> history_vec;

inline size_t history_index;

void add_history(const std::string &s);
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());

}