summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-04-01 22:52:33 +0200
committerwm4 <wm4@mplayer2.org>2012-04-01 22:52:33 +0200
commit1aa2e36122e6e664e42170f47d6db82873bef5aa (patch)
tree39e13f93bcb606da9e365c7cd379132bdf53c20b /input/input.h
parentfea8c85c8595b797fc839b113c1db252fc55c798 (diff)
parent8cd71527ade21ea27ea24cdcc66dc71dca460f85 (diff)
downloadmpv-1aa2e36122e6e664e42170f47d6db82873bef5aa.tar.bz2
mpv-1aa2e36122e6e664e42170f47d6db82873bef5aa.tar.xz
Merge remote-tracking branch 'origin/master'
Conflicts: bstr.c bstr.h etc/input.conf input/input.c input/input.h libao2/ao_pulse.c libmpcodecs/vf_ass.c libmpcodecs/vf_vo.c libvo/gl_common.c libvo/x11_common.c mixer.c mixer.h mplayer.c
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/input/input.h b/input/input.h
index 084e2dd3e7..87814dd56c 100644
--- a/input/input.h
+++ b/input/input.h
@@ -19,6 +19,8 @@
#ifndef MPLAYER_INPUT_H
#define MPLAYER_INPUT_H
+#include <stdbool.h>
+
// All command IDs
enum mp_command_type {
MP_CMD_SEEK,
@@ -154,14 +156,11 @@ enum mp_command_type {
};
// The arg types
-#define MP_CMD_ARG_VOID 0
#define MP_CMD_ARG_INT 1
#define MP_CMD_ARG_FLOAT 2
#define MP_CMD_ARG_STRING 3
-#ifndef MP_CMD_MAX_ARGS
#define MP_CMD_MAX_ARGS 10
-#endif
// Error codes for the drivers
@@ -181,6 +180,7 @@ struct input_ctx;
struct mp_cmd_arg {
int type;
+ bool optional;
union {
int i;
float f;
@@ -191,8 +191,8 @@ struct mp_cmd_arg {
typedef struct mp_cmd {
int id;
char *name;
- int nargs;
struct mp_cmd_arg args[MP_CMD_MAX_ARGS];
+ int nargs;
int pausing;
struct mp_cmd *queue_next;
} mp_cmd_t;
@@ -272,6 +272,9 @@ void mp_input_uninit(struct input_ctx *ictx);
struct m_config;
void mp_input_register_options(struct m_config *cfg);
+// Wake up sleeping input loop from another thread.
+void mp_input_wakeup(struct input_ctx *ictx);
+
// Interruptible usleep: (used by libmpdemux)
int mp_input_check_interrupt(struct input_ctx *ictx, int time);