Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
entry_handler.h File Reference

Declarations for entry handling functions. More...

#include <atomic>
#include <string_view>
#include "thread_pool.h"
#include "thread_safe.h"
Include dependency graph for entry_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  args
 Functions for handling command line arguments.
namespace  lifetime
 Functions for handling the lifetime of Sunshine.

Functions

void launch_ui (const std::optional< std::string > &path=std::nullopt)
 Launch the Web UI.
int args::creds (const char *name, int argc, char *argv[])
 Reset the user credentials.
int args::help (const char *name)
 Print help to stdout, then exit.
int args::version ()
 Print the version to stdout, then exit.
void lifetime::exit_sunshine (int exit_code, bool async)
 Terminates Sunshine gracefully with the provided exit code.
void lifetime::debug_trap ()
 Breaks into the debugger or terminates Sunshine if no debugger is attached.
char ** lifetime::get_argv ()
 Get the argv array passed to main().
void log_publisher_data ()
 Log the publisher metadata provided from CMake.

Detailed Description

Declarations for entry handling functions.

Definition in file entry_handler.h.

Function Documentation

◆ launch_ui()

void launch_ui ( const std::optional< std::string > & path = std::nullopt)

Launch the Web UI.

Parameters
pathOptional path to append to the base URL.

Examples

launch_ui("/pin");
void launch_ui(const std::optional< std::string > &path=std::nullopt)
Launch the Web UI.

Definition at line 23 of file entry_handler.cpp.

◆ log_publisher_data()

void log_publisher_data ( )

Log the publisher metadata provided from CMake.

Definition at line 84 of file entry_handler.cpp.