summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/subprocess-dummy.c9
-rw-r--r--osdep/subprocess.c10
-rw-r--r--osdep/terminal-dummy.c31
3 files changed, 40 insertions, 10 deletions
diff --git a/osdep/subprocess-dummy.c b/osdep/subprocess-dummy.c
new file mode 100644
index 0000000000..791c90e566
--- /dev/null
+++ b/osdep/subprocess-dummy.c
@@ -0,0 +1,9 @@
+#include "subprocess.h"
+
+int mp_subprocess(char **args, struct mp_cancel *cancel, void *ctx,
+ subprocess_read_cb on_stdout, subprocess_read_cb on_stderr,
+ char **error)
+{
+ *error = "unsupported";
+ return -1;
+}
diff --git a/osdep/subprocess.c b/osdep/subprocess.c
index bc18f44652..1e94d23b67 100644
--- a/osdep/subprocess.c
+++ b/osdep/subprocess.c
@@ -61,13 +61,3 @@ void mp_subprocess_detached(struct mp_log *log, char **args)
if (pthread_create(&thread, NULL, run_subprocess, p))
talloc_free(p);
}
-
-#if !HAVE_SUBPROCESS
-int mp_subprocess(char **args, struct mp_cancel *cancel, void *ctx,
- subprocess_read_cb on_stdout, subprocess_read_cb on_stderr,
- char **error)
-{
- *error = "unsupported";
- return -1;
-}
-#endif
diff --git a/osdep/terminal-dummy.c b/osdep/terminal-dummy.c
new file mode 100644
index 0000000000..4a3787e0fa
--- /dev/null
+++ b/osdep/terminal-dummy.c
@@ -0,0 +1,31 @@
+#include "terminal.h"
+
+void terminal_init(void)
+{
+}
+
+void terminal_setup_getch(struct input_ctx *ictx)
+{
+}
+
+void terminal_uninit(void)
+{
+}
+
+bool terminal_in_background(void)
+{
+ return false;
+}
+
+void terminal_get_size(int *w, int *h)
+{
+}
+
+void mp_write_console_ansi(void *wstream, char *buf)
+{
+}
+
+bool terminal_try_attach(void)
+{
+ return false;
+}