Luanti 5.16.0-dev
Loading...
Searching...
No Matches
clientmedia.h File Reference
#include "irrlichttypes.h"
#include "filecache.h"
#include "util/basic_macros.h"
#include <map>
#include <set>
#include <vector>
#include <unordered_map>
Include dependency graph for clientmedia.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IClientMediaDownloader
class  ClientMediaDownloader
struct  ClientMediaDownloader::FileStatus
struct  ClientMediaDownloader::RemoteServerStatus
class  SingleMediaDownloader

Macros

#define MTHASHSET_FILE_SIGNATURE   0x4d544853
#define MTHASHSET_FILE_NAME   "index.mth"

Functions

bool clientMediaUpdateCache (const std::string &raw_hash, const std::string &filedata)
bool clientMediaUpdateCacheCopy (const std::string &raw_hash, const std::string &path)

Macro Definition Documentation

◆ MTHASHSET_FILE_NAME

#define MTHASHSET_FILE_NAME   "index.mth"

◆ MTHASHSET_FILE_SIGNATURE

#define MTHASHSET_FILE_SIGNATURE   0x4d544853

Function Documentation

◆ clientMediaUpdateCache()

bool clientMediaUpdateCache ( const std::string & raw_hash,
const std::string & filedata )

References FileCache::exists(), getMediaCacheDir(), hex_encode(), and FileCache::update().

Referenced by Client::handleCommand_MediaPush().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clientMediaUpdateCacheCopy()

bool clientMediaUpdateCacheCopy ( const std::string & raw_hash,
const std::string & path )

References FileCache::exists(), getMediaCacheDir(), hex_encode(), and FileCache::updateCopyFile().

Referenced by Game::copyServerClientCache().

Here is the call graph for this function:
Here is the caller graph for this function: