Hermes
0.7.0
Linux game streaming host
Toggle main menu visibility
Loading...
Searching...
No Matches
entry_handler.h
Go to the documentation of this file.
1
5
#pragma once
6
7
// standard includes
8
#include <atomic>
9
#include <string_view>
10
11
// local includes
12
#include "
thread_pool.h
"
13
#include "
thread_safe.h
"
14
23
void
launch_ui
(
const
std::optional<std::string> &path = std::nullopt);
24
28
namespace
args
{
38
int
creds
(
const
char
*name,
int
argc,
char
*argv[]);
39
47
int
help
(
const
char
*name);
48
55
int
version
();
56
57
}
// namespace args
58
62
namespace
lifetime
{
63
extern
char
**argv;
64
extern
std::atomic_int desired_exit_code;
65
71
void
exit_sunshine
(
int
exit_code,
bool
async);
72
76
void
debug_trap
();
77
81
char
**
get_argv
();
82
}
// namespace lifetime
83
87
void
log_publisher_data
();
launch_ui
void launch_ui(const std::optional< std::string > &path)
Launch the Web UI.
Definition
entry_handler.cpp:23
log_publisher_data
void log_publisher_data()
Log the publisher metadata provided from CMake.
Definition
entry_handler.cpp:84
args
Functions for handling command line arguments.
Definition
entry_handler.cpp:31
args::creds
int creds(const char *name, int argc, char *argv[])
Reset the user credentials.
Definition
entry_handler.cpp:32
args::version
int version()
Print the version to stdout, then exit.
Definition
entry_handler.cpp:47
args::help
int help(const char *name)
Print help to stdout, then exit.
Definition
entry_handler.cpp:42
lifetime
Functions for handling the lifetime of Sunshine.
Definition
entry_handler.cpp:54
lifetime::debug_trap
void debug_trap()
Breaks into the debugger or terminates Sunshine if no debugger is attached.
Definition
entry_handler.cpp:73
lifetime::exit_sunshine
void exit_sunshine(int exit_code, bool async)
Terminates Sunshine gracefully with the provided exit code.
Definition
entry_handler.cpp:58
lifetime::get_argv
char ** get_argv()
Get the argv array passed to main().
Definition
entry_handler.cpp:79
thread_pool.h
Declarations for the thread pool system.
thread_safe.h
Declarations for thread-safe data structures.
src
entry_handler.h
Generated by
1.18.0