Sunshine latest
Self-hosted game stream host for Moonlight.
config.h File Reference

Declarations for the configuration of Sunshine. More...

#include <bitset>
#include <chrono>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
#include "nvenc/nvenc_config.h"
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  config::audio_t
 
struct  config::sunshine_t::cmd_t
 
struct  config::video_t::dd_t
 
struct  config::input_t
 
struct  config::video_t::dd_t::mode_remapping_entry_t
 
struct  config::video_t::dd_t::mode_remapping_t
 
struct  config::nvhttp_t
 
struct  config::prep_cmd_t
 
struct  config::stream_t
 
struct  config::sunshine_t
 
struct  config::video_t
 
struct  config::video_t::dd_t::workarounds_t
 

Enumerations

enum  config::flag::flag_e : std::size_t {
  config::flag::PIN_STDIN = 0 , config::flag::FRESH_STATE , config::flag::FORCE_VIDEO_HEADER_REPLACE , config::flag::UPNP ,
  config::flag::CONST_PIN , config::flag::FLAG_SIZE
}
 

Functions

int config::parse (int argc, char *argv[])
 
std::unordered_map< std::string, std::string > config::parse_config (const std::string_view &file_content)
 

Variables

constexpr int config::ENCRYPTION_MODE_MANDATORY = 2
 
constexpr int config::ENCRYPTION_MODE_NEVER = 0
 
constexpr int config::ENCRYPTION_MODE_OPPORTUNISTIC = 1
 

Detailed Description

Declarations for the configuration of Sunshine.

Enumeration Type Documentation

◆ flag_e

enum config::flag::flag_e : std::size_t
Enumerator
PIN_STDIN 

Read PIN from stdin instead of http.

FRESH_STATE 

Do not load or save state.

FORCE_VIDEO_HEADER_REPLACE 

force replacing headers inside video data

UPNP 

Try Universal Plug 'n Play.

CONST_PIN 

Use "universal" pin.

FLAG_SIZE 

Number of flags.