diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-02-25 17:33:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-02-25 17:37:25 +0100 |
commit | f0bbbbe4a9d6b0314dc98ed27b63e96045a6e8cf (patch) | |
tree | 9e5f68394e53fc98ec99f6a1bd068770ceb2493f /include/Process.hpp | |
parent | d9a1e5c2eb2fe9411a01b50915b9a919d089d64b (diff) |
Diffstat (limited to 'include/Process.hpp')
-rw-r--r-- | include/Process.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/Process.hpp b/include/Process.hpp index 072ef58..1789fb1 100644 --- a/include/Process.hpp +++ b/include/Process.hpp @@ -12,14 +12,14 @@ namespace gsr { }; // Arguments ending with NULL - bool exec_program_daemonized(const char **args); + bool exec_program_daemonized(const char **args, bool debug = true); // Arguments ending with NULL. |read_fd| can be NULL - pid_t exec_program(const char **args, int *read_fd); + pid_t exec_program(const char **args, int *read_fd, bool debug = true); // 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); + int exec_program_get_stdout(const char **args, std::string &result, bool debug = true); // Arguments ending with NULL. Returns the exit status of the program or -1 on error. // This works the same as |exec_program_get_stdout|, except on flatpak where this runs the program on the // host machine with flatpak-spawn --host - int exec_program_on_host_get_stdout(const char **args, std::string &result); + int exec_program_on_host_get_stdout(const char **args, std::string &result, bool debug = true); pid_t pidof(const char *process_name, pid_t ignore_pid); }
\ No newline at end of file |