From f91ff5856e2276825d450610d1b040fcf8bda6cd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 Nov 2022 20:01:27 +0100 Subject: Add syntax highlighting (currently only for matrix codeblocks) --- include/Program.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/Program.hpp b/include/Program.hpp index 92defa1..e60a6ae 100644 --- a/include/Program.hpp +++ b/include/Program.hpp @@ -18,6 +18,13 @@ typedef int (*ProgramOutputCallback)(char *data, int size, void *userdata); */ int exec_program_pipe(const char **args, ReadProgram *read_program); +/* + @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_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. -- cgit v1.2.3