summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 07:15:52 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-30 13:24:54 +0300
commit9e9932d4d79fee2cd03ea8b88ee7281a7858837f (patch)
treeee2ec3b7e1b6f00c4e0518668fbbc2e020265475 /mp_core.h
parent56fec4dfdca623c36d29ed7cb30e7637d99fb942 (diff)
downloadmpv-9e9932d4d79fee2cd03ea8b88ee7281a7858837f.tar.bz2
mpv-9e9932d4d79fee2cd03ea8b88ee7281a7858837f.tar.xz
Create a context for input.c state
Start moving static variables to a context struct. Only autorepeat state is moved to the struct in this commit. mp_input_check_interrupt now requires the context variable. Change stream functions to pass it. It's still stored in a static variable in stream/.
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mp_core.h b/mp_core.h
index 1e36abe183..dacd12c2de 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -40,6 +40,7 @@ typedef struct MPContext {
struct m_config *mconfig;
struct vo_x11_state *x11_state;
struct mp_fifo *key_fifo;
+ struct input_ctx *input;
int osd_show_percentage;
int osd_function;
const ao_functions_t *audio_out;