From 2e156d80e4e3d379849bb1e127e4c69a8f34cea4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 10 Jul 2020 04:55:11 +0200 Subject: Fallback to invidio.us only if mpv exits (faster fallback) --- include/Program.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/Program.h') diff --git a/include/Program.h b/include/Program.h index 6a6d038..bc3e91e 100644 --- a/include/Program.h +++ b/include/Program.h @@ -2,6 +2,7 @@ #define QUICKMEDIA_PROGRAM_H #include +#include #ifdef __cplusplus extern "C" { @@ -25,6 +26,8 @@ int exec_program(const char **args, ProgramOutputCallback output_callback, void // Return the exit status, or a negative value if waiting failed int wait_program(pid_t process_id); +bool 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 -- cgit v1.2.3