aboutsummaryrefslogtreecommitdiff
path: root/include/Process.hpp
blob: bd76306f34a45d462eb88642011d5ed9007c8902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <sys/types.h>

namespace gsr {
    enum class GsrMode {
        Replay,
        Record,
        Stream,
        Unknown
    };

    // Arguments ending with NULL
    bool exec_program_daemonized(const char **args);
    // Arguments ending with NULL
    pid_t exec_program(const char **args);
    bool is_gpu_screen_recorder_running(pid_t &gsr_pid, GsrMode &mode);
}