game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
anonymous_namespace{runner_download_service.cpp} Namespace Reference

Classes

struct  DownloadContext
struct  GitHubCacheEntry
struct  HeaderCaptureCtx

Functions

std::filesystem::path gitHubCacheFilePath ()
size_t headerCaptureCallback (char *buffer, size_t size, size_t nitems, void *userdata)
std::map< std::string, GitHubCacheEntry > loadGitHubCache ()
std::string nowIsoUtc ()
int progressCallback (void *userp, curl_off_t dltotal, curl_off_t, curl_off_t, curl_off_t)
void saveGitHubCache (const std::map< std::string, GitHubCacheEntry > &cache)
void storeFuture (std::shared_ptr< std::future< void > > f)
size_t writeCallback (void *contents, size_t size, size_t nmemb, void *userp)

Variables

std::vector< std::shared_ptr< std::future< void > > > activeFutures_
std::mutex futuresMutex_
std::mutex gitHubCacheMutex_

Function Documentation

◆ gitHubCacheFilePath()

std::filesystem::path anonymous_namespace{runner_download_service.cpp}::gitHubCacheFilePath ( )

◆ headerCaptureCallback()

size_t anonymous_namespace{runner_download_service.cpp}::headerCaptureCallback ( char * buffer,
size_t size,
size_t nitems,
void * userdata )

Definition at line 206 of file runner_download_service.cpp.

◆ loadGitHubCache()

◆ nowIsoUtc()

std::string anonymous_namespace{runner_download_service.cpp}::nowIsoUtc ( )

Definition at line 102 of file runner_download_service.cpp.

◆ progressCallback()

int anonymous_namespace{runner_download_service.cpp}::progressCallback ( void * userp,
curl_off_t dltotal,
curl_off_t ,
curl_off_t ,
curl_off_t  )

Definition at line 433 of file runner_download_service.cpp.

◆ saveGitHubCache()

void anonymous_namespace{runner_download_service.cpp}::saveGitHubCache ( const std::map< std::string, GitHubCacheEntry > & cache)

◆ storeFuture()

void anonymous_namespace{runner_download_service.cpp}::storeFuture ( std::shared_ptr< std::future< void > > f)

Definition at line 47 of file runner_download_service.cpp.

References activeFutures_, and futuresMutex_.

◆ writeCallback()

size_t anonymous_namespace{runner_download_service.cpp}::writeCallback ( void * contents,
size_t size,
size_t nmemb,
void * userp )

Variable Documentation

◆ activeFutures_

std::vector<std::shared_ptr<std::future<void> > > anonymous_namespace{runner_download_service.cpp}::activeFutures_

Definition at line 44 of file runner_download_service.cpp.

Referenced by storeFuture().

◆ futuresMutex_

std::mutex anonymous_namespace{runner_download_service.cpp}::futuresMutex_

Definition at line 45 of file runner_download_service.cpp.

Referenced by storeFuture().

◆ gitHubCacheMutex_

std::mutex anonymous_namespace{runner_download_service.cpp}::gitHubCacheMutex_

Definition at line 91 of file runner_download_service.cpp.