Mercurial > mplayer.hg
comparison libmenu/menu.h @ 22284:83366c8e1928
Fix menu to work with mpctx
author | uau |
---|---|
date | Wed, 21 Feb 2007 18:28:48 +0000 |
parents | f57977ac0394 |
children | 1b3dabc8c2b8 |
comparison
equal
deleted
inserted
replaced
22283:bc9e95184521 | 22284:83366c8e1928 |
---|---|
1 | 1 |
2 struct menu_priv_s; | 2 struct menu_priv_s; |
3 typedef struct menu_s menu_t; | 3 typedef struct menu_s menu_t; |
4 | 4 |
5 struct menu_s { | 5 struct menu_s { |
6 struct MPContext *ctx; | |
6 void (*draw)(menu_t* menu,mp_image_t* mpi); | 7 void (*draw)(menu_t* menu,mp_image_t* mpi); |
7 void (*read_cmd)(menu_t* menu,int cmd); | 8 void (*read_cmd)(menu_t* menu,int cmd); |
8 void (*read_key)(menu_t* menu,int cmd); | 9 void (*read_key)(menu_t* menu,int cmd); |
9 void (*close)(menu_t* menu); | 10 void (*close)(menu_t* menu); |
10 m_struct_t* priv_st; | 11 m_struct_t* priv_st; |
34 #define MENU_CMD_LEFT 4 | 35 #define MENU_CMD_LEFT 4 |
35 #define MENU_CMD_RIGHT 5 | 36 #define MENU_CMD_RIGHT 5 |
36 #define MENU_CMD_ACTION 6 | 37 #define MENU_CMD_ACTION 6 |
37 | 38 |
38 /// Global init/uninit | 39 /// Global init/uninit |
39 int menu_init(char* cfg_file); | 40 int menu_init(struct MPContext *mpctx, char* cfg_file); |
40 void menu_unint(void); | 41 void menu_unint(void); |
41 | 42 |
42 /// Open a menu defined in the config file | 43 /// Open a menu defined in the config file |
43 menu_t* menu_open(char *name); | 44 menu_t* menu_open(char *name); |
44 | 45 |