diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-05-25 16:52:49 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-05-25 16:55:24 +0200 |
commit | 109c797d7c89223c9eed07dc322448b5c5fe3373 (patch) | |
tree | 20e538d4f5d558832d2984a1d60f810c387e9838 /include | |
parent | 7cde49baf87b8340c608e76bc6052769deb1cdf4 (diff) |
Convert to sibs, add curl download, write test
Diffstat (limited to 'include')
-rw-r--r-- | include/Program.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/Program.h b/include/Program.h new file mode 100644 index 0000000..5f986a4 --- /dev/null +++ b/include/Program.h @@ -0,0 +1,13 @@ +#ifndef QUICKMEDIA_PROGRAM_H +#define QUICKMEDIA_PROGRAM_H + +/* Return 0 if you want to continue reading */ +typedef int (*ProgramOutputCallback)(char *data, int size, void *userdata); + +/* + @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 +*/ +int exec_program(char **args, ProgramOutputCallback output_callback, void *userdata); + +#endif |