Make sure we don't try to free a random element of cfg in set_config_value()
[browser-switch] / config-ui / browsers.h
1 /*
2  * browsers.h -- the list of known browsers
3  *
4  * Copyright (C) 2010 Steven Luo
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19  * USA.
20  */
21
22 #ifndef _BROWSERS_H
23 #define _BROWSERS_H 1
24
25 struct browser_entry {
26         char *config;
27         char *displayname;
28         char *binary;
29 };
30
31 struct browser_entry browsers[] = {
32         { "microb", "MicroB (stock browser)", NULL }, /* First entry is the default! */
33         { "tear", "Tear", "/usr/bin/tear" },
34         { "fennec", "Firefox Mobile", "/usr/bin/fennec" },
35         { "opera", "Opera Mobile", "/usr/bin/opera" },
36         { "midori", "Midori", "/usr/bin/midori" },
37         { "other", "Other", NULL },
38         { NULL, NULL, NULL },
39 };
40
41 #endif /* _BROWSERS_H */