diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 13:00:59 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 14:46:21 +0300 |
commit | 423b95bf5cc46da5952a907fa565c0c7119724f0 (patch) | |
tree | 1bca5f4ac7cb5fb0d17cabcee6708d23ced2cb99 /libmenu/menu.h | |
parent | f7b608812ea637f89d9f9e860982940fd7101495 (diff) | |
download | mpv-423b95bf5cc46da5952a907fa565c0c7119724f0.tar.bz2 mpv-423b95bf5cc46da5952a907fa565c0c7119724f0.tar.xz |
input: Move cmd_queue to context struct
Menu instances now also need a input context pointer to queue commands.
Diffstat (limited to 'libmenu/menu.h')
-rw-r--r-- | libmenu/menu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmenu/menu.h b/libmenu/menu.h index 7b63fad547..3a3f8fd6c3 100644 --- a/libmenu/menu.h +++ b/libmenu/menu.h @@ -14,6 +14,7 @@ struct m_struct_st; struct menu_s { struct MPContext *ctx; struct m_config *mconfig; + struct input_ctx *input_ctx; void (*draw)(menu_t* menu,mp_image_t* mpi); void (*read_cmd)(menu_t* menu,int cmd); int (*read_key)(menu_t* menu,int cmd); @@ -53,7 +54,8 @@ typedef struct menu_info_s { #define MENU_CMD_CLICK 11 /// Global init/uninit -int menu_init(struct MPContext *mpctx, struct m_config *mconfig, char* cfg_file); +int menu_init(struct MPContext *mpctx, struct m_config *mconfig, + struct input_ctx *input_ctx, char* cfg_file); void menu_uninit(void); /// Open a menu defined in the config file |