Sunshine master
Self-hosted game stream host for Moonlight.
config::prep_cmd_t Struct Reference

External preparation command plus its privilege requirement. More...

#include <src/config.h>

Public Member Functions

 prep_cmd_t (std::string &&do_cmd, bool &&elevated)
 Build a preparation command entry from parsed configuration data.
 
 prep_cmd_t (std::string &&do_cmd, std::string &&undo_cmd, bool &&elevated)
 Build a preparation command entry from parsed configuration data.
 

Public Attributes

std::string do_cmd
 Command to run before the application starts.
 
bool elevated
 Whether the process should be launched elevated.
 
std::string undo_cmd
 Command to run after the application exits.
 

Detailed Description

External preparation command plus its privilege requirement.

Constructor & Destructor Documentation

◆ prep_cmd_t() [1/2]

config::prep_cmd_t::prep_cmd_t ( std::string && do_cmd,
std::string && undo_cmd,
bool && elevated )
inline

Build a preparation command entry from parsed configuration data.

Parameters
do_cmdCommand to run before the application starts.
undo_cmdCommand to run after the application exits.
elevatedWhether the command should run with elevated privileges.

◆ prep_cmd_t() [2/2]

config::prep_cmd_t::prep_cmd_t ( std::string && do_cmd,
bool && elevated )
inlineexplicit

Build a preparation command entry from parsed configuration data.

Parameters
do_cmdCommand to run before the application starts.
elevatedWhether the command should run with elevated privileges.

The documentation for this struct was generated from the following file: