annotate libmenu/menu_txt.c @ 36690:e26d54724b75

Remove the previous definition of MSGTR_ConfigureEqualizer. It is left over in r36770.
author ib
date Tue, 04 Feb 2014 18:30:59 +0000
parents b28f3ff37ae7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28113
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
1 /*
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
2 * This file is part of MPlayer.
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
3 *
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
5 * it under the terms of the GNU General Public License as published by
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
7 * (at your option) any later version.
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
8 *
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
12 * GNU General Public License for more details.
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
13 *
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
14 * You should have received a copy of the GNU General Public License along
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
f8b6c7045cf8 Add standard GPL headers.
diego
parents: 25263
diff changeset
17 */
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
18
16862
931bdbc37ee0 Unify include paths, -I.. is in CFLAGS.
diego
parents: 9380
diff changeset
19 #include "config.h"
17994
6927fabaef92 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
reynaldo
parents: 16862
diff changeset
20 #include "mp_msg.h"
6927fabaef92 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
reynaldo
parents: 16862
diff changeset
21 #include "help_mp.h"
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
22
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
23 #include <stdlib.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
24 #include <stdio.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
25 #include <string.h>
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
26
36582
b28f3ff37ae7 Use av_unused for unused arguments instead of various hacks.
reimar
parents: 36151
diff changeset
27 #include "libavutil/attributes.h"
b28f3ff37ae7 Use av_unused for unused arguments instead of various hacks.
reimar
parents: 36151
diff changeset
28
19431
ac69ba536915 Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.
diego
parents: 17994
diff changeset
29 #include "libmpcodecs/img_format.h"
ac69ba536915 Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.
diego
parents: 17994
diff changeset
30 #include "libmpcodecs/mp_image.h"
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
31
16862
931bdbc37ee0 Unify include paths, -I.. is in CFLAGS.
diego
parents: 9380
diff changeset
32 #include "m_struct.h"
931bdbc37ee0 Unify include paths, -I.. is in CFLAGS.
diego
parents: 9380
diff changeset
33 #include "m_option.h"
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
34 #include "menu.h"
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
35
32466
9e627a1793b1 Move font_load.[ch], font_load_ft.c and osd_font.h from libvo to sub.
cigaes
parents: 30957
diff changeset
36 #include "sub/font_load.h"
16862
931bdbc37ee0 Unify include paths, -I.. is in CFLAGS.
diego
parents: 9380
diff changeset
37 #include "osdep/keycodes.h"
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
38
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
39 struct menu_priv_s {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
40 char** lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
41 int num_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
42 int cur_line;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
43 int disp_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
44 int minb;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
45 int hspace;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
46 char* file;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
47 };
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
48
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
49 static struct menu_priv_s cfg_dflt = {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
50 NULL,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
51 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
52 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
53 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
54 0,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
55 3,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
56 NULL
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
30957
45b93bea8082 Mark cfg_fields m_option_t array as const.
diego
parents: 29263
diff changeset
61 static const m_option_t cfg_fields[] = {
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
62 { "minbor", ST_OFF(minb), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
63 { "hspace", ST_OFF(hspace), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
64 { "file", ST_OFF(file), CONF_TYPE_STRING, 0, 0, 0, NULL },
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
65 { NULL, NULL, NULL, 0,0,0,NULL }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
66 };
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
67
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
68 #define mpriv (menu->priv)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
69
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
70 static void read_cmd(menu_t* menu,int cmd) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
71 switch(cmd) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
72 case MENU_CMD_UP:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
73 mpriv->cur_line -= mpriv->disp_lines / 2;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
74 if(mpriv->cur_line < 0)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
75 mpriv->cur_line = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
76 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
77 case MENU_CMD_DOWN:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
78 case MENU_CMD_OK:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
79 mpriv->cur_line += mpriv->disp_lines / 2;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
80 if(mpriv->cur_line >= mpriv->num_lines)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
81 mpriv->cur_line = mpriv->num_lines - 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
82 break;
23367
ee2c8684c925 allow left key command to close text menus too
ben
parents: 23366
diff changeset
83 case MENU_CMD_LEFT:
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
84 case MENU_CMD_CANCEL:
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
85 menu->show = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
86 menu->cl = 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
87 break;
25263
96d0992c7920 Remove hardcoded key->cmd bindings in libmenu, support custom key bindings
ulion
parents: 23367
diff changeset
88 case MENU_CMD_HOME:
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
89 mpriv->cur_line = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
90 break;
25263
96d0992c7920 Remove hardcoded key->cmd bindings in libmenu, support custom key bindings
ulion
parents: 23367
diff changeset
91 case MENU_CMD_END:
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
92 mpriv->cur_line = mpriv->num_lines - 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
93 break;
25263
96d0992c7920 Remove hardcoded key->cmd bindings in libmenu, support custom key bindings
ulion
parents: 23367
diff changeset
94 case MENU_CMD_PAGE_UP:
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
95 mpriv->cur_line = mpriv->cur_line > mpriv->disp_lines ?
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
96 mpriv->cur_line - mpriv->disp_lines : 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
97 break;
25263
96d0992c7920 Remove hardcoded key->cmd bindings in libmenu, support custom key bindings
ulion
parents: 23367
diff changeset
98 case MENU_CMD_PAGE_DOWN:
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
99 mpriv->cur_line = mpriv->cur_line + mpriv->disp_lines > mpriv->num_lines - 1 ? mpriv->num_lines - 1 : mpriv->cur_line + mpriv->disp_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
100 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
101 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
102 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
103
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
104
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
105 static void draw(menu_t* menu,mp_image_t* mpi) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
106 int x = mpriv->minb;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
107 int y = mpriv->minb;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
108 //int th = 2*mpriv->hspace + vo_font->height;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
109 int i,end;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
110
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
111 if(x < 0) x = 8;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
112 if(y < 0) y = 8;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
113
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
114 mpriv->disp_lines = (mpi->h + mpriv->hspace - 2*mpriv->minb) / ( vo_font->height + mpriv->hspace);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
115 if(mpriv->num_lines - mpriv->cur_line < mpriv->disp_lines) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
116 i = mpriv->num_lines - 1 - mpriv->disp_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
117 if(i < 0) i = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
118 end = mpriv->num_lines - 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
119 } else {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
120 i = mpriv->cur_line;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
121 end = i + mpriv->disp_lines;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
122 if(end >= mpriv->num_lines) end = mpriv->num_lines - 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
123 }
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28113
diff changeset
124
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
125 for( ; i < end ; i++) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
126 menu_draw_text(mpi,mpriv->lines[i],x,y);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
127 y += vo_font->height + mpriv->hspace;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
128 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
129
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
130 }
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28113
diff changeset
131
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
132 #define BUF_SIZE 1024
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
133
36582
b28f3ff37ae7 Use av_unused for unused arguments instead of various hacks.
reimar
parents: 36151
diff changeset
134 static int open_txt(menu_t* menu, char* av_unused args) {
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
135 FILE* fd;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
136 char buf[BUF_SIZE];
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
137 char *l;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
138 int s;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
139 int pos = 0, r = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
140
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
141 menu->draw = draw;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
142 menu->read_cmd = read_cmd;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
143
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
144 if(!mpriv->file) {
17994
6927fabaef92 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
reynaldo
parents: 16862
diff changeset
145 mp_msg(MSGT_GLOBAL,MSGL_WARN,MSGTR_LIBMENU_MenuTxtNeedATxtFileName);
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
146 return 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
147 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
148
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
149 fd = fopen(mpriv->file,"r");
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
150 if(!fd) {
17994
6927fabaef92 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
reynaldo
parents: 16862
diff changeset
151 mp_msg(MSGT_GLOBAL,MSGL_WARN,MSGTR_LIBMENU_MenuTxtCantOpen,mpriv->file);
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
152 return 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
153 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
154
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
155 while(1) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
156 r = fread(buf+pos,1,BUF_SIZE-pos-1,fd);
36151
63bc09af21f4 Ensure 0-termination.
reimar
parents: 32466
diff changeset
157 if (r > 0) pos += r;
63bc09af21f4 Ensure 0-termination.
reimar
parents: 32466
diff changeset
158 buf[pos] = '\0';
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
159 if(r <= 0) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
160 if(pos > 0) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
161 mpriv->lines = realloc(mpriv->lines,(mpriv->num_lines + 1)*sizeof(char*));
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
162 mpriv->lines[mpriv->num_lines] = strdup(buf);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
163 mpriv->num_lines++;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
164 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
165 fclose(fd);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
166 break;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
167 }
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28113
diff changeset
168
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
169 while((l = strchr(buf,'\n')) != NULL) {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
170 s = l-buf;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
171 mpriv->lines = realloc(mpriv->lines,(mpriv->num_lines + 1)*sizeof(char*));
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
172 mpriv->lines[mpriv->num_lines] = malloc(s+1);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
173 memcpy(mpriv->lines[mpriv->num_lines],buf,s);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
174 mpriv->lines[mpriv->num_lines][s] = '\0';
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
175 pos -= s + 1;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
176 if(pos > 0)
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
177 memmove(buf,l+1,pos);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
178 buf[pos] = '\0';
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
179 mpriv->num_lines++;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
180 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
181 if(pos >= BUF_SIZE-1) {
17994
6927fabaef92 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
reynaldo
parents: 16862
diff changeset
182 mp_msg(MSGT_GLOBAL,MSGL_WARN,MSGTR_LIBMENU_WarningTooLongLineSplitting);
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
183 mpriv->lines = realloc(mpriv->lines,(mpriv->num_lines + 1)*sizeof(char*));
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
184 mpriv->lines[mpriv->num_lines] = strdup(buf);
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
185 mpriv->num_lines++;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
186 pos = 0;
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
187 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
188 }
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
189
17994
6927fabaef92 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
reynaldo
parents: 16862
diff changeset
190 mp_msg(MSGT_GLOBAL,MSGL_INFO,MSGTR_LIBMENU_ParsedLines,mpriv->num_lines);
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
191
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
192 return 1;
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 const menu_info_t menu_info_txt = {
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
196 "Text file viewer",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
197 "txt",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
198 "Albeu",
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 "txt_cfg",
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
202 sizeof(struct menu_priv_s),
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
203 &cfg_dflt,
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
204 cfg_fields
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
205 },
23366
b344b6520518 rename some menu open functions, to avoid confusion with libc native open()
ben
parents: 19431
diff changeset
206 open_txt,
8197
b31caec933e9 OSD menus initial version
albeu
parents:
diff changeset
207 };