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