diff options
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 |