10 #include "frame_on_disk.h"
14 explicit DB(const std::string &filename);
15 DB(const DB &) = delete;
17 StateProto get_state();
18 void store_state(const StateProto &state);
20 SettingsProto get_settings();
21 void store_settings(const SettingsProto &settings);
23 struct FrameOnDiskAndStreamIdx {
27 std::vector<FrameOnDiskAndStreamIdx> load_frame_file(const std::string &filename, size_t size, unsigned frame_idx); // Empty = none found, or there were no frames.
28 void store_frame_file(const std::string &filename, size_t size, const std::vector<FrameOnDiskAndStreamIdx> &frames);
29 void clean_unused_frame_files(const std::vector<std::string> &used_filenames);
36 #endif // !defined(DB_H)