diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-25 04:28:14 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-08-25 04:28:14 +0000 |
commit | 95a174a65a04ada12ecda4f34f139a31dfa95540 (patch) | |
tree | fbc26f310143717c7b821f7ba87d78924f32332f /input/input.h | |
parent | 24802b1def3b48375a54e2fe9bbb1d19953286c8 (diff) | |
download | mpv-95a174a65a04ada12ecda4f34f139a31dfa95540.tar.bz2 mpv-95a174a65a04ada12ecda4f34f139a31dfa95540.tar.xz |
Add separate event input type for terminal+vo
Add an input/input.c fd type whose read function takes no arguments and
returns no value. If such a function reads key or command events it'll
add them to the queues itself. Use this type for terminal input which
was special-cased before. The event function for X11-based VOs will use
the same type later.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24152 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h index 7e5b3e83d2..469ad48713 100644 --- a/input/input.h +++ b/input/input.h @@ -230,6 +230,10 @@ mp_input_add_key_fd(int fd, int select, mp_key_func_t read_func, mp_close_func_t void mp_input_rm_key_fd(int fd); +int mp_input_add_event_fd(int fd, void (*read_func)(void)); + +void mp_input_rm_event_fd(int fd); + // This function can be used to put a command in the system again. It's used by libmpdemux // when it performs a blocking operation to resend the command it received to the main // loop. |