diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 07:15:52 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 13:24:54 +0300 |
commit | 9e9932d4d79fee2cd03ea8b88ee7281a7858837f (patch) | |
tree | ee2ec3b7e1b6f00c4e0518668fbbc2e020265475 /stream/stream.h | |
parent | 56fec4dfdca623c36d29ed7cb30e7637d99fb942 (diff) | |
download | mpv-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 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stream/stream.h b/stream/stream.h index 50df5baa7e..71dbb99557 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -300,7 +300,9 @@ stream_t* open_stream_full(char* filename,int mode, struct MPOpts *options, int* stream_t* open_output_stream(char* filename,struct MPOpts *options); /// Set the callback to be used by libstream to check for user /// interruption during long blocking operations (cache filling, etc). -void stream_set_interrupt_callback(int (*cb)(int)); +struct input_ctx; +void stream_set_interrupt_callback(int (*cb)(struct input_ctx*, int), + struct input_ctx *ctx); /// Call the interrupt checking callback if there is one. int stream_check_interrupt(int time); |