From a5fdd8f6f94710d2dc14d18f12c1b79975b40bdf Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 30 Apr 2008 13:14:03 +0300 Subject: input: Move command filedescriptor list to context struct --- input/input.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'input/input.h') 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. -- cgit v1.2.3