Sunshine master
Self-hosted game stream host for Moonlight.
nvprefs_common.cpp File Reference

Definitions for common nvidia preferences. More...

#include "nvprefs_common.h"
#include "src/config.h"
#include "src/logging.h"
Include dependency graph for nvprefs_common.cpp:

Functions

void nvprefs::error_message (const std::string &message)
 Forward an NVPrefs error message to the logger.
 
void nvprefs::error_message (const std::wstring &message)
 Forward an NVPrefs error message to the logger.
 
nvprefs_options nvprefs::get_nvprefs_options ()
 Get nvprefs options.
 
void nvprefs::info_message (const std::string &message)
 Forward an informational NVPrefs message to the logger.
 
void nvprefs::info_message (const std::wstring &message)
 Forward an informational NVPrefs message to the logger.
 

Detailed Description

Definitions for common nvidia preferences.

Function Documentation

◆ error_message() [1/2]

void nvprefs::error_message ( const std::string & message)

Forward an NVPrefs error message to the logger.

Parameters
messageMessage text to log or report.

◆ error_message() [2/2]

void nvprefs::error_message ( const std::wstring & message)

Forward an NVPrefs error message to the logger.

Parameters
messageMessage text to log or report.

◆ get_nvprefs_options()

nvprefs_options nvprefs::get_nvprefs_options ( )

Get nvprefs options.

Returns
Parsed command-line options for NVIDIA profile preference handling.

◆ info_message() [1/2]

void nvprefs::info_message ( const std::string & message)

Forward an informational NVPrefs message to the logger.

Parameters
messageMessage text to log or report.

◆ info_message() [2/2]

void nvprefs::info_message ( const std::wstring & message)

Forward an informational NVPrefs message to the logger.

Parameters
messageMessage text to log or report.