Launch apps from web UI

This commit is contained in:
Yukino Song
2024-09-19 03:21:41 +08:00
parent af8b8fd352
commit 8e8f89d514
10 changed files with 223 additions and 101 deletions

View File

@@ -10,6 +10,7 @@
#include <chrono>
// lib includes
#include <Simple-Web-Server/server_https.hpp>
#include <boost/property_tree/ptree.hpp>
// local includes
@@ -24,6 +25,8 @@ using namespace std::chrono_literals;
*/
namespace nvhttp {
using args_t = SimpleWeb::CaseInsensitiveMultimap;
/**
* @brief The protocol version.
* @details The version of the GameStream protocol we are mocking.
@@ -57,6 +60,12 @@ namespace nvhttp {
void
start();
std::string
get_arg(const args_t &args, const char *name, const char *default_value = nullptr);
std::shared_ptr<rtsp_stream::launch_session_t>
make_launch_session(bool host_audio, int appid, const args_t &args, const crypto::named_cert_t* named_cert_p);
/**
* @brief Compare the user supplied pin to the Moonlight pin.
* @param pin The user supplied pin.