diff options
author | wm4 <wm4@nowhere> | 2013-07-07 16:53:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-14 15:27:55 +0200 |
commit | b2cbcbfc16cde88a7c0af5d03c162aa55201046b (patch) | |
tree | d17b02d7639e711a4cc881c1144365474d420aaf /core/input/input.h | |
parent | ea7e54cb347b13d8036f42fcf3c8263f58fcd636 (diff) | |
download | mpv-b2cbcbfc16cde88a7c0af5d03c162aa55201046b.tar.bz2 mpv-b2cbcbfc16cde88a7c0af5d03c162aa55201046b.tar.xz |
input: use only one array for input sources
Removes some code duplication. Also restructure the input waiting code
a bit: split the select() loop into a input_wait_read() function. On
systems which do not have POSIX select(), this function has an alternate
implementation, which waits unconditionally.
Diffstat (limited to 'core/input/input.h')
-rw-r--r-- | core/input/input.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/input/input.h b/core/input/input.h index da92efd373..1a0f2529ce 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -170,9 +170,6 @@ int mp_input_add_cmd_fd(struct input_ctx *ictx, int fd, int select, int read_func(int fd, char *dest, int size), int close_func(int fd)); -// This removes a cmd driver, you usually don't need to use it. -void mp_input_rm_cmd_fd(struct input_ctx *ictx, int fd); - /* The args are similar to the cmd version above, except you must give * a read_func, and it should return key codes (ASCII plus keycodes.h). */ |