diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 13:14:03 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 14:46:21 +0300 |
commit | a5fdd8f6f94710d2dc14d18f12c1b79975b40bdf (patch) | |
tree | 04797742432654d92f3b97c542ef92a09577c89b /input/input.h | |
parent | 423b95bf5cc46da5952a907fa565c0c7119724f0 (diff) | |
download | mpv-a5fdd8f6f94710d2dc14d18f12c1b79975b40bdf.tar.bz2 mpv-a5fdd8f6f94710d2dc14d18f12c1b79975b40bdf.tar.xz |
input: Move command filedescriptor list to context struct
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/input/input.h b/input/input.h index 60613373a8..570e65eea3 100644 --- a/input/input.h +++ b/input/input.h @@ -216,12 +216,11 @@ typedef int (*mp_input_cmd_filter)(mp_cmd_t* cmd, int paused, void* ctx); // fd will be used. // The last arg can be NULL if nothing is needed to close the driver. The close // function can be used -int -mp_input_add_cmd_fd(int fd, int select, mp_cmd_func_t read_func, mp_close_func_t close_func); +int mp_input_add_cmd_fd(struct input_ctx *ictx, int fd, int select, + mp_cmd_func_t read_func, mp_close_func_t close_func); // This removes a cmd driver, you usually don't need to use it. -void -mp_input_rm_cmd_fd(int fd); +void mp_input_rm_cmd_fd(struct input_ctx *ictx, int fd); // The args are the same as for the key's drivers. If you don't use any valid fd you MUST // give a read_func. |