annotate libmenu/menu_console.c @ 8210:e88dffa0c555

removed win32 section - no much sense of separating them now moved up untested codevs, before the buggy ones
author arpi
date Sat, 16 Nov 2002 05:30:43 +0000
parents b31caec933e9
children 3050cfda3c61
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
1
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
2 #include "../config.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
3
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
4 #include <stdlib.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
5 #include <stdio.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
6 #include <string.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
7 #include <ctype.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
8
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
9 #include "img_format.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
10 #include "mp_image.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
11
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
12 #include "../m_struct.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
13 #include "../m_option.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
14 #include "menu.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
15
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
16 #include "../libvo/font_load.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
17 #include "../linux/keycodes.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
18 #include "../input/input.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
19 #include "../linux/timer.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
20
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
21 struct menu_priv_s {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
22 char** lines; // Our buffer
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
23 int last_line;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
24 int num_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
25 char* input; // input buffer
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
26 int input_size; // size of the input buffer in lines
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
27 unsigned int hide_ts;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
28 unsigned int show_ts;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
29
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
30 //int max_lines; // Max number of lines with the last mpi
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
31
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
32 char* prompt;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
33 int buf_lines; // Buffer size (in line)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
34 int height; // Display size in %
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
35 int minb;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
36 int vspace;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
37 unsigned int hide_time;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
38 unsigned int show_time;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
39 };
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
40
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
41 static struct menu_priv_s cfg_dflt = {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
42 NULL,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
43 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
44 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
45 NULL,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
46 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
47 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
48 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
49
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
50 "# ",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
51 50, // lines
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
52 33, // %
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
53 3,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
54 3,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
55 500,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
56 500,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
57 };
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
58
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
59 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
60
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
61 static m_option_t cfg_fields[] = {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
62 { "prompt", ST_OFF(prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
63 { "buffer-lines", ST_OFF(buf_lines), CONF_TYPE_INT, M_OPT_MIN, 5, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
64 { "height", ST_OFF(height), CONF_TYPE_INT, M_OPT_RANGE, 1, 100, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
65 { "minbor", ST_OFF(minb), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
66 { "vspace", ST_OFF(vspace), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
67 { "show-time",ST_OFF(show_time), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
68 { "hide-time",ST_OFF(hide_time), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
69 { NULL, NULL, NULL, 0,0,0,NULL }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
70 };
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
71
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
72 #define mpriv (menu->priv)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
73
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
74 static void add_line(struct menu_priv_s* priv, char* l) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
75
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
76 if(priv->num_lines >= priv->buf_lines && priv->lines[priv->last_line])
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
77 free(priv->lines[priv->last_line]);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
78 else
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
79 priv->num_lines++;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
80
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
81 priv->lines[priv->last_line] = strdup(l);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
82 priv->last_line = (priv->last_line + 1) % priv->buf_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
83 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
84
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
85 static void draw(menu_t* menu, mp_image_t* mpi) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
86 int h = mpi->h*mpriv->height/100;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
87 int w = mpi->w - 2* mpriv->minb;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
88 int x = mpriv->minb, y;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
89 int lw,lh,i, ll = mpriv->last_line - 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
90
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
91 if(mpriv->hide_ts) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
92 unsigned int t = GetTimerMS() - mpriv->hide_ts;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
93 if(t >= mpriv->hide_time) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
94 mpriv->hide_ts = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
95 menu->show = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
96 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
97 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
98 h = mpi->h*(mpriv->height - (mpriv->height * t /mpriv->hide_time))/100;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
99 } else if(mpriv->show_time && mpriv->show_ts == 0) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
100 mpriv->show_ts = GetTimerMS();
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
101 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
102 } else if(mpriv->show_ts > 0) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
103 unsigned int t = GetTimerMS() - mpriv->show_ts;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
104 if(t > mpriv->show_time)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
105 mpriv->show_ts = -1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
106 else
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
107 h = mpi->h*(mpriv->height * t /mpriv->hide_time)/100;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
108 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
109
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
110 y = h - mpriv->vspace;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
111
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
112 if(x < 0 || y < 0 || w <= 0 || h <= 0 )
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
113 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
114
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
115 menu_text_size(mpriv->input,w,mpriv->vspace,1,&lw,&lh);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
116 menu_draw_text_full(mpi,mpriv->input,x,y,w,h,mpriv->vspace,1,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
117 MENU_TEXT_BOT|MENU_TEXT_LEFT,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
118 MENU_TEXT_BOT|MENU_TEXT_LEFT);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
119 y -= lh + mpriv->vspace;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
120
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
121 for( i = 0 ; y > mpriv->minb && i < mpriv->num_lines ; i++){
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
122 int c = (ll - i) >= 0 ? ll - i : mpriv->buf_lines + ll - i;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
123 menu_text_size(mpriv->lines[c],w,mpriv->vspace,1,&lw,&lh);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
124 menu_draw_text_full(mpi,mpriv->lines[c],x,y,w,h,mpriv->vspace,1,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
125 MENU_TEXT_BOT|MENU_TEXT_LEFT,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
126 MENU_TEXT_BOT|MENU_TEXT_LEFT);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
127 y -= lh + mpriv->vspace;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
128 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
129 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
130 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
131
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
132 static void read_cmd(menu_t* menu,int cmd) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
133 switch(cmd) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
134 case MENU_CMD_UP:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
135 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
136 case MENU_CMD_DOWN:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
137 case MENU_CMD_OK:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
138 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
139 case MENU_CMD_CANCEL:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
140 menu->show = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
141 menu->cl = 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
142 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
143 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
144 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
145
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
146 static void read_key(menu_t* menu,int c) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
147 switch(c) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
148 case KEY_ESC:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
149 if(mpriv->hide_time)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
150 mpriv->hide_ts = GetTimerMS();
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
151 else
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
152 menu->show = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
153 mpriv->show_ts = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
154 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
155 case KEY_ENTER: {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
156 mp_cmd_t* c = mp_input_parse_cmd(&mpriv->input[strlen(mpriv->prompt)]);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
157 add_line(mpriv,mpriv->input);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
158 if(!c)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
159 add_line(mpriv,"Invalid command try help");
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
160 else {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
161 switch(c->id) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
162 case MP_CMD_CHELP:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
163 add_line(mpriv,"Mplayer console 0.01");
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
164 add_line(mpriv,"TODO: Write some mainful help msg ;)");
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
165 add_line(mpriv,"Enter any mplayer command");
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
166 add_line(mpriv,"exit close this console");
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
167 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
168 case MP_CMD_CEXIT:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
169 menu->show = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
170 menu->cl = 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
171 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
172 case MP_CMD_CHIDE:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
173 if(mpriv->hide_time)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
174 mpriv->hide_ts = GetTimerMS();
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
175 else
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
176 menu->show = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
177 mpriv->show_ts = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
178 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
179 default: // Send the other commands to mplayer
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
180 mp_input_queue_cmd(c);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
181 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
182 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
183 mpriv->input[strlen(mpriv->prompt)] = '\0';
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
184 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
185 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
186 case KEY_DELETE:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
187 case KEY_BS: {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
188 unsigned int i = strlen(mpriv->input);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
189 if(i > strlen(mpriv->prompt))
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
190 mpriv->input[i-1] = '\0';
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
191 return;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
192 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
193 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
194
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
195 if(isascii(c)) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
196 int l = strlen(mpriv->input);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
197 mpriv->input[l] = (char)c;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
198 mpriv->input[l+1] = '\0';
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
199 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
200
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
201 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
202
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
203
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
204 static int open(menu_t* menu, char* args) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
205
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
206
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
207 menu->draw = draw;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
208 menu->read_cmd = read_cmd;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
209 menu->read_key = read_key;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
210
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
211 mpriv->lines = calloc(mpriv->buf_lines,sizeof(char*));
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
212 mpriv->input_size = 1024;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
213 mpriv->input = calloc(mpriv->input_size,sizeof(char));
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
214 strcpy(mpriv->input,mpriv->prompt);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
215
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
216 if(args)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
217 add_line(mpriv,args);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
218
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
219 return 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
220 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
221
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
222 const menu_info_t menu_info_console = {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
223 "MPlayer console",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
224 "console",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
225 "Albeu",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
226 "",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
227 {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
228 "console_cfg",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
229 sizeof(struct menu_priv_s),
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
230 &cfg_dflt,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
231 cfg_fields
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
232 },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
233 open,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
234 };