Server pushing media at runtime (#9961)
[oweals/minetest.git] / src / client / clientmedia.h
index 92831082c3fa1d011df27de7ccc0f6752030441b..5a918535b9339500c08e18106eb26a79546cc8bd 100644 (file)
@@ -33,6 +33,11 @@ struct HTTPFetchResult;
 #define MTHASHSET_FILE_SIGNATURE 0x4d544853 // 'MTHS'
 #define MTHASHSET_FILE_NAME "index.mth"
 
+// Store file into media cache (unless it exists already)
+// Validating the hash is responsibility of the caller
+bool clientMediaUpdateCache(const std::string &raw_hash,
+       const std::string &filedata);
+
 class ClientMediaDownloader
 {
 public: