summaryrefslogtreecommitdiffstats
path: root/libmenu/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu/menu.h')
-rw-r--r--libmenu/menu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmenu/menu.h b/libmenu/menu.h
index 1578f5f426..bfb8f9a30b 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