summaryrefslogtreecommitdiffstats
path: root/mp_fifo.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp_fifo.h')
-rw-r--r--mp_fifo.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/mp_fifo.h b/mp_fifo.h
index b50173c0af..125b67eb2c 100644
--- a/mp_fifo.h
+++ b/mp_fifo.h
@@ -19,7 +19,16 @@
#ifndef MPLAYER_MP_FIFO_H
#define MPLAYER_MP_FIFO_H
-int mplayer_get_key(int fd);
-void mplayer_put_key(int code);
+struct mp_fifo;
+int mplayer_get_key(void *ctx, int fd);
+void mplayer_put_key(struct mp_fifo *fifo, int code);
+// Can be freed with talloc_free()
+struct MPOpts;
+struct mp_fifo *mp_fifo_create(struct MPOpts *opts);
+
+
+#ifdef IS_OLD_VO
+#define mplayer_put_key(key) mplayer_put_key(global_vo->key_fifo, key)
+#endif
#endif /* MPLAYER_MP_FIFO_H */