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

Functions

bool containsIntField (const std::string &response, const char *key, int value)
int jsonGetInt (const std::string &json, const std::string &key)
double jsonGetNumber (const std::string &json, const std::string &key)
std::string jsonGetString (const std::string &json, const std::string &key)
std::vector< std::string > jsonSplitArray (const std::string &json)
LRUCache< int, LutrisGameInfo > & lutrisCache ()
LRUCache< int, ProtonDBGameInfo > & protondbCache ()
LRUCache< int, SteamAppInfo > & steamAppCache ()
LRUCache< int, SteamDeckInfo > & steamDeckCache ()
void storeAsyncFuture (std::shared_ptr< std::future< void > > future)

Variables

std::vector< std::shared_ptr< std::future< void > > > activeFutures_
std::mutex asyncFuturesMutex_

Function Documentation

◆ containsIntField()

bool anonymous_namespace{protondb_service.cpp}::containsIntField ( const std::string & response,
const char * key,
int value )

Definition at line 85 of file protondb_service.cpp.

◆ jsonGetInt()

int anonymous_namespace{protondb_service.cpp}::jsonGetInt ( const std::string & json,
const std::string & key )

Definition at line 232 of file protondb_service.cpp.

References jsonGetNumber().

◆ jsonGetNumber()

double anonymous_namespace{protondb_service.cpp}::jsonGetNumber ( const std::string & json,
const std::string & key )

Definition at line 206 of file protondb_service.cpp.

Referenced by jsonGetInt().

◆ jsonGetString()

std::string anonymous_namespace{protondb_service.cpp}::jsonGetString ( const std::string & json,
const std::string & key )

Definition at line 172 of file protondb_service.cpp.

◆ jsonSplitArray()

std::vector< std::string > anonymous_namespace{protondb_service.cpp}::jsonSplitArray ( const std::string & json)

Definition at line 238 of file protondb_service.cpp.

◆ lutrisCache()

LRUCache< int, LutrisGameInfo > & anonymous_namespace{protondb_service.cpp}::lutrisCache ( )

Definition at line 73 of file protondb_service.cpp.

References LUTRIS_CACHE_MAX_SIZE, and LUTRIS_CACHE_TTL_SECONDS.

◆ protondbCache()

LRUCache< int, ProtonDBGameInfo > & anonymous_namespace{protondb_service.cpp}::protondbCache ( )

Definition at line 56 of file protondb_service.cpp.

References PROTONDB_CACHE_MAX_SIZE, and PROTONDB_CACHE_TTL_SECONDS.

◆ steamAppCache()

LRUCache< int, SteamAppInfo > & anonymous_namespace{protondb_service.cpp}::steamAppCache ( )

Definition at line 68 of file protondb_service.cpp.

References STEAM_APP_CACHE_MAX_SIZE, and STEAM_APP_CACHE_TTL_SECONDS.

◆ steamDeckCache()

LRUCache< int, SteamDeckInfo > & anonymous_namespace{protondb_service.cpp}::steamDeckCache ( )

Definition at line 62 of file protondb_service.cpp.

References STEAM_DECK_CACHE_MAX_SIZE, and STEAM_DECK_CACHE_TTL_SECONDS.

◆ storeAsyncFuture()

void anonymous_namespace{protondb_service.cpp}::storeAsyncFuture ( std::shared_ptr< std::future< void > > future)

Definition at line 710 of file protondb_service.cpp.

References activeFutures_, and asyncFuturesMutex_.

Variable Documentation

◆ activeFutures_

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

Definition at line 708 of file protondb_service.cpp.

Referenced by storeAsyncFuture().

◆ asyncFuturesMutex_

std::mutex anonymous_namespace{protondb_service.cpp}::asyncFuturesMutex_

Definition at line 707 of file protondb_service.cpp.

Referenced by storeAsyncFuture().