histui/source/db.hpp

25 lines
504 B
C++
Raw Permalink Normal View History

2024-02-10 15:50:36 -05:00
#include <time.h>
#include <string>
#include <vector>
struct Shell {
size_t id;
std::string name;
};
struct Entry {
std::string line;
time_t timestamp;
Shell * shell;
};
extern const char * db_file;
extern void append_entry(const Entry * const entry);
extern std::vector<Entry> search(const char * const query);
extern std::vector<Entry> inspect(const Entry * const entry);
extern signed export_main(int argc, char * * argv);
extern signed import_main(int argc, char * * argv);