From 40e0f8f5d8c3e480f01a2d71b6a493247adcb77f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 21 Sep 2020 03:49:17 +0200 Subject: Initial matrix support --- include/Storage.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/Storage.hpp') diff --git a/include/Storage.hpp b/include/Storage.hpp index 601336a..cdae7b0 100644 --- a/include/Storage.hpp +++ b/include/Storage.hpp @@ -3,6 +3,7 @@ #include "Path.hpp" #include #include +#include namespace QuickMedia { // Return false to stop the iterator @@ -24,4 +25,7 @@ namespace QuickMedia { int file_overwrite(const Path &path, const std::string &data); void for_files_in_dir(const Path &path, FileIteratorCallback callback); void for_files_in_dir_sort_last_modified(const Path &path, FileIteratorCallback callback); + + bool read_file_as_json(const Path &filepath, Json::Value &result); + bool save_json_to_file_atomic(const Path &path, const Json::Value &json); } \ No newline at end of file -- cgit v1.2.3