From bfcb3a7a8130be478103beb1923567f5e5d86c67 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 30 Apr 2008 11:06:55 +0300 Subject: input: Move key filedescriptor list to context struct The context variable is now passed to VOs too as it's now needed to add a callback on the X filedescriptor. --- input/input.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'input/input.h') diff --git a/input/input.h b/input/input.h index 6833051340..2e0a198bef 100644 --- a/input/input.h +++ b/input/input.h @@ -225,12 +225,12 @@ mp_input_rm_cmd_fd(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. -int -mp_input_add_key_fd(int fd, int select, mp_key_func_t read_func, mp_close_func_t close_func, void *ctx); +int mp_input_add_key_fd(struct input_ctx *ictx, int fd, int select, + mp_key_func_t read_func, mp_close_func_t close_func, + void *ctx); // As for the cmd one you usually don't need this function. -void -mp_input_rm_key_fd(int fd); +void mp_input_rm_key_fd(struct input_ctx *ictx, int fd); /// Get input key from its name. int mp_input_get_key_from_name(const char *name); -- cgit v1.2.3