diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-10 01:13:19 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-10 01:13:19 +0100 |
commit | 0b9858f28ff0681d0fb08217aed6de710ae93902 (patch) | |
tree | bf2c0cbdfafde4dddab75c0f4d83f08e725d4a6c /include/Process.hpp | |
parent | 6be9dee8685e9f79aa0b182e8acb690ea9ac16ef (diff) |
Fix capture options not available on nvidia x11
Diffstat (limited to 'include/Process.hpp')
-rw-r--r-- | include/Process.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Process.hpp b/include/Process.hpp index 731062e..40373b5 100644 --- a/include/Process.hpp +++ b/include/Process.hpp @@ -1,6 +1,7 @@ #pragma once #include <sys/types.h> +#include <string> namespace gsr { enum class GsrMode { @@ -14,6 +15,8 @@ namespace gsr { bool exec_program_daemonized(const char **args); // Arguments ending with NULL. |read_fd| can be NULL pid_t exec_program(const char **args, int *read_fd); + // Arguments ending with NULL. Returns the exit status of the program or -1 on error + int exec_program_get_stdout(const char **args, std::string &result); // |output_buffer| should be at least PATH_MAX in size bool read_cmdline_arg0(const char *filepath, char *output_buffer); }
\ No newline at end of file |