summaryrefslogtreecommitdiffstats
path: root/libmenu/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu/menu.h')
-rw-r--r--libmenu/menu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libmenu/menu.h b/libmenu/menu.h
index 1578f5f426..185043f8c1 100644
--- a/libmenu/menu.h
+++ b/libmenu/menu.h
@@ -21,7 +21,6 @@
#include "m_struct.h"
#include "libmpcodecs/mp_image.h"
-#include "libmpcodecs/vf.h"
struct menu_priv_s;
typedef struct menu_s menu_t;
@@ -32,6 +31,8 @@ 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);
@@ -71,7 +72,8 @@ typedef struct menu_info_s {
#define MENU_CMD_CLICK 11
/// Global init/uninit
-int menu_init(struct MPContext *mpctx, 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
@@ -114,6 +116,7 @@ void menu_draw_text_full(mp_image_t* mpi,char* txt,
void menu_draw_box(mp_image_t* mpi, unsigned char grey, unsigned char alpha, int x, int y, int w, int h);
+struct vf_instance;
void vf_menu_pause_update(struct vf_instance *vf);
#endif /* MPLAYER_MENU_H */