aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-02 20:08:27 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-02 20:08:27 +0200
commit65cf7681a04f2511db8c7829e9828b53a6676c88 (patch)
tree6e7db509cf2bce4a10fa6d8bc89a9eae88d893fa /include
parent109c797d7c89223c9eed07dc322448b5c5fe3373 (diff)
Convert to sfml, starting on manganelo and youtube
Diffstat (limited to 'include')
-rw-r--r--include/Program.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/Program.h b/include/Program.h
index 5f986a4..f891d8e 100644
--- a/include/Program.h
+++ b/include/Program.h
@@ -1,6 +1,10 @@
#ifndef QUICKMEDIA_PROGRAM_H
#define QUICKMEDIA_PROGRAM_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Return 0 if you want to continue reading */
typedef int (*ProgramOutputCallback)(char *data, int size, void *userdata);
@@ -8,6 +12,10 @@ 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);
+int exec_program(const char **args, ProgramOutputCallback output_callback, void *userdata);
+
+#ifdef __cplusplus
+}
+#endif
#endif