+/* The Browser Switchboard config file options */
+struct swb_config_option swb_config_options[] = {
+ { "continuous_mode", SWB_CONFIG_OPT_INT, SWB_CONFIG_CONTINUOUS_MODE_SET },
+ { "default_browser", SWB_CONFIG_OPT_STRING, SWB_CONFIG_DEFAULT_BROWSER_SET },
+ { "other_browser_cmd", SWB_CONFIG_OPT_STRING, SWB_CONFIG_OTHER_BROWSER_CMD_SET },
+ { "logging", SWB_CONFIG_OPT_STRING, SWB_CONFIG_LOGGING_SET },
+ { NULL, 0, 0 },
+};
+
+/* Browser Switchboard configuration defaults */
+static struct swb_config swb_config_defaults = {
+ .flags = SWB_CONFIG_INITIALIZED,
+ .continuous_mode = 0,
+ .default_browser = "microb",
+ .other_browser_cmd = NULL,
+ .logging = "stdout",
+};
+
+
+/* Copy the contents of an swb_config struct
+ The entries[] array means that the standard copy will not work */
+void swb_config_copy(struct swb_config *dst, struct swb_config *src) {
+ if (!dst || !src)