|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Tracks launched child processes and terminates them during shutdown. More...
#include <src/process.h>
Public Member Functions | |
| int | execute (int app_id, std::shared_ptr< rtsp_stream::launch_session_t > launch_session) |
| Launch the configured application process. | |
| std::string | get_app_image (int app_id) |
| Get app image. | |
| std::vector< ctx_t > & | get_apps () |
| Return the configured applications. | |
| const std::vector< ctx_t > & | get_apps () const |
| Return the configured applications. | |
| std::string | get_last_run_app_name () |
| Get last run app name. | |
| proc_t & | operator= (proc_t &&)=default |
| Defaulted move assignment for the generated type. * *. | |
| proc_t ()=default | |
| Default constructor for the generated type. | |
| proc_t (boost::process::v1::environment &&env, std::vector< ctx_t > &&apps) | |
| Construct a process manager. | |
| proc_t (proc_t &&)=default | |
| Defaulted move constructor for the generated type. | |
| int | running () |
| void | terminate () |
| Terminate the launched application process. | |
Tracks launched child processes and terminates them during shutdown.
|
default |
Defaulted move constructor for the generated type.
|
default |
Default constructor for the generated type.
|
inline |
Construct a process manager.
| env | Environment used when launching processes. |
| apps | Application launch contexts. |
| int proc::proc_t::execute | ( | int | app_id, |
| std::shared_ptr< rtsp_stream::launch_session_t > | launch_session ) |
Launch the configured application process.
| app_id | App ID. |
| launch_session | Launch session. |
| std::string proc::proc_t::get_app_image | ( | int | app_id | ) |
Get app image.
| app_id | App ID. |
| std::vector< ctx_t > & proc::proc_t::get_apps | ( | ) |
Return the configured applications.
| const std::vector< ctx_t > & proc::proc_t::get_apps | ( | ) | const |
Return the configured applications.
| std::string proc::proc_t::get_last_run_app_name | ( | ) |
Get last run app name.
Defaulted move assignment for the generated type. * *.
| int proc::proc_t::running | ( | ) |
_app_id if a process is running, otherwise returns 0