aboutsummaryrefslogtreecommitdiff
path: root/web/storage.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-05-26 17:05:36 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-05-26 17:05:36 +0200
commitfa0fa1fcb494483020a736a2bc2c5c639a2bd870 (patch)
tree909db148c91e9d9650b2f5d8eb1dee04ea8cae1b /web/storage.h
parent87852933851674cacbc8b2295d046831db27ab81 (diff)
downloadnissy-core-fa0fa1fcb494483020a736a2bc2c5c639a2bd870.tar.gz
nissy-core-fa0fa1fcb494483020a736a2bc2c5c639a2bd870.zip
Progress with web version
Diffstat (limited to 'web/storage.h')
-rw-r--r--web/storage.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/storage.h b/web/storage.h
index fa6b748..b491742 100644
--- a/web/storage.h
+++ b/web/storage.h
@@ -1,7 +1,9 @@
1#include <string> 1#include <string>
2#include <fstream> 2#include <fstream>
3#include <emscripten/fetch.h>
3 4
4namespace storage { 5namespace storage {
5 bool read(std::string, size_t, char *); 6 bool read(std::string key, size_t data_size, char *data);
6 bool write(std::string, size_t, const char *); 7 bool write(std::string key, size_t data_size, const char *data);
8 int download(std::string key, std::string url);
7} 9}

Generated with cgit - Back to sebastiano.tronto.net