aboutsummaryrefslogtreecommitdiff
path: root/include/Program.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Program.h')
-rw-r--r--include/Program.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/include/Program.h b/include/Program.h
deleted file mode 100644
index cab8d26..0000000
--- a/include/Program.h
+++ /dev/null
@@ -1,48 +0,0 @@
-#ifndef QUICKMEDIA_PROGRAM_H
-#define QUICKMEDIA_PROGRAM_H
-
-#include <sys/types.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- pid_t pid;
- int read_fd;
-} ReadProgram;
-
-/* Return 0 if you want to continue reading. @data is null-terminated */
-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_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
-*/
-int exec_program(const char **args, ProgramOutputCallback output_callback, void *userdata);
-
-// Return the exit status, or a negative value if waiting failed
-int wait_program(pid_t process_id);
-
-/* Returns 1 if the program quit and exited properly (non-0 exit codes also count as exiting properly) */
-int wait_program_non_blocking(pid_t process_id, int *status);
-
-/*
- @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.
- @result_process_id should be set to NULL if you are not interested in the exit status of the child process
- and you want the child process to be cleaned up automatically when it dies.
-*/
-int exec_program_async(const char **args, pid_t *result_process_id);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif