![]() |
Sunshine v2025.118.151840
Self-hosted game stream host for Moonlight.
|
Declarations for the startup and shutdown of the apps started by a streaming Session. More...
#include <optional>#include <unordered_map>#include <boost/process/v1.hpp>#include "config.h"#include "platform/common.h"#include "rtsp.h"#include "utility.h"Go to the source code of this file.
Classes | |
| struct | proc::ctx_t |
| class | proc::proc_t |
Typedefs | |
| typedef config::prep_cmd_t | proc::cmd_t |
| using | proc::file_t = util::safe_ptr_v2<FILE, int, fclose> |
Functions | |
| std::tuple< std::string, std::string > | proc::calculate_app_id (const std::string &app_name, std::string app_image_path, int index) |
| Calculate a stable id based on name and image data. | |
| std::unique_ptr< platf::deinit_t > | proc::init () |
| Initialize proc functions. | |
| std::optional< proc::proc_t > | proc::parse (const std::string &file_name) |
| void | proc::refresh (const std::string &file_name) |
| void | proc::terminate_process_group (boost::process::v1::child &proc, boost::process::v1::group &group, std::chrono::seconds exit_timeout) |
| Terminates all child processes in a process group. | |
| std::string | proc::validate_app_image_path (std::string app_image_path) |
Declarations for the startup and shutdown of the apps started by a streaming Session.
| std::tuple< std::string, std::string > proc::calculate_app_id | ( | const std::string & | app_name, |
| std::string | app_image_path, | ||
| int | index ) |
Calculate a stable id based on name and image data.
| std::unique_ptr< platf::deinit_t > proc::init | ( | ) |
Initialize proc functions.
deinit_t to manage cleanup | void proc::terminate_process_group | ( | boost::process::v1::child & | proc, |
| boost::process::v1::group & | group, | ||
| std::chrono::seconds | exit_timeout ) |
Terminates all child processes in a process group.
| proc | The child process itself. |
| group | The group of all children in the process tree. |
| exit_timeout | The timeout to wait for the process group to gracefully exit. |