diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Program.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Program.hpp b/include/Program.hpp index 92defa1..e60a6ae 100644 --- a/include/Program.hpp +++ b/include/Program.hpp @@ -23,6 +23,13 @@ int exec_program_pipe(const char **args, ReadProgram *read_program); and the last which is NULL, which indicates end of args. |buffer_size| has to be between 1 and 65536. */ +int exec_program_write_stdin(const char **args, const char *str, size_t size, ProgramOutputCallback output_callback, void *userdata, int buffer_size = 16384); + +/* + @args need to have at least 2 arguments. The first which is the program name + and the last which is NULL, which indicates end of args. + |buffer_size| has to be between 1 and 65536. +*/ int exec_program(const char **args, ProgramOutputCallback output_callback, void *userdata, int buffer_size = 16384); // Return the exit status, or a negative value if waiting failed |