2 * config.h -- definitions for Browser Switchboard configuration
4 * Copyright (C) 2009-2010 Steven Luo
5 * Derived from a Python implementation by Jason Simpson and Steven Luo
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
26 #define SWB_CONFIG_INITIALIZED 0x01
27 #define SWB_CONFIG_CONTINUOUS_MODE_SET 0x02
28 #define SWB_CONFIG_DEFAULT_BROWSER_SET 0x04
29 #define SWB_CONFIG_OTHER_BROWSER_CMD_SET 0x08
30 #define SWB_CONFIG_LOGGING_SET 0x10
31 #define SWB_CONFIG_AUTOSTART_MICROB_SET 0x20
35 /* Array of pointers to the elements of the struct, in the order given
36 in swb_config_options[] */
40 char *default_browser;
41 char *other_browser_cmd;
46 struct swb_config_option {
49 SWB_CONFIG_OPT_STRING,
55 void swb_config_copy(struct swb_config *dst, struct swb_config *src);
56 void swb_config_init(struct swb_config *cfg);
57 void swb_config_free(struct swb_config *cfg);
59 int swb_config_load(struct swb_config *cfg);
61 #endif /* _CONFIG_H */