aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-08 20:01:27 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-08 20:01:27 +0100
commitf91ff5856e2276825d450610d1b040fcf8bda6cd (patch)
treed9f5bb5428fe87e9c59d08ba12b854d926f846b9 /include
parent840b87c42bb55ae6f47acc7576b3b40af4c6a68c (diff)
Add syntax highlighting (currently only for matrix codeblocks)
Diffstat (limited to 'include')
-rw-r--r--include/Program.hpp7
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