Set the current active runtime when a headset connects

This commit is contained in:
Guillaume Meunier
2024-02-19 23:36:28 +01:00
parent a5a1ad1cbd
commit 9efe3852f4
10 changed files with 180 additions and 41 deletions
+35
View File
@@ -0,0 +1,35 @@
/*
* WiVRn VR streaming
* Copyright (C) 2024 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <unistd.h>
#include <filesystem>
class active_runtime
{
bool to_be_deleted = false;
std::filesystem::path active_runtime_json;
pid_t pid;
public:
active_runtime();
active_runtime(const active_runtime&) = delete;
active_runtime& operator=(const active_runtime&) = delete;
~active_runtime();
};