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
35 char *default_browser;
36 char *other_browser_cmd;
40 void swb_config_init(struct swb_config *cfg);
41 void swb_config_free(struct swb_config *cfg);
43 int swb_config_load(struct swb_config *cfg);
45 int swb_config_save(struct swb_config *cfg);
47 #endif /* _CONFIG_H */