Start/stop recording if not running/already running

This commit is contained in:
dec05eba
2022-03-31 02:38:18 +02:00
parent 900553e6c0
commit 5dc945eb6a
6 changed files with 244 additions and 18 deletions

14
include/Process.hpp Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
namespace gsr {
enum class GsrMode {
Replay,
Record,
Stream,
Unknown
};
// Arguments ending with NULL
bool exec_program_daemonized(const char **args);
bool is_gpu_screen_recorder_running(int &gsr_pid, GsrMode &mode);
}