Hermes 0.7.0
Linux game streaming host
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
23void launch_ui(const std::optional<std::string> &path = std::nullopt);
24
28namespace 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
62namespace 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
void launch_ui(const std::optional< std::string > &path)
Launch the Web UI.
void log_publisher_data()
Log the publisher metadata provided from CMake.
Functions for handling command line arguments.
int creds(const char *name, int argc, char *argv[])
Reset the user credentials.
int version()
Print the version to stdout, then exit.
int help(const char *name)
Print help to stdout, then exit.
Functions for handling the lifetime of Sunshine.
void debug_trap()
Breaks into the debugger or terminates Sunshine if no debugger is attached.
void exit_sunshine(int exit_code, bool async)
Terminates Sunshine gracefully with the provided exit code.
char ** get_argv()
Get the argv array passed to main().
Declarations for the thread pool system.
Declarations for thread-safe data structures.