diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-21 03:49:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-21 03:49:17 +0200 |
commit | 40e0f8f5d8c3e480f01a2d71b6a493247adcb77f (patch) | |
tree | ccc3c0a7c82be8f5dbe86dfc712cce3da7e2ad59 /include/Storage.hpp | |
parent | 5c72463c029804c85479d2c4426397d932c88ee1 (diff) |
Initial matrix support
Diffstat (limited to 'include/Storage.hpp')
-rw-r--r-- | include/Storage.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <functional> #include <filesystem> +#include <json/value.h> 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 |