X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=config.h;h=11ef5c515b5305f78c788d54a797db11c7662da6;hp=39df7178076b4af029281700d1e90f793b8e3218;hb=e3ec5ec543a7a76d230d3102666a6a33ae20c496;hpb=ec8b58af1b1cf22f34478faf476047e7ce996245 diff --git a/config.h b/config.h index 39df717..11ef5c5 100644 --- a/config.h +++ b/config.h @@ -28,20 +28,31 @@ #define SWB_CONFIG_DEFAULT_BROWSER_SET 0x04 #define SWB_CONFIG_OTHER_BROWSER_CMD_SET 0x08 #define SWB_CONFIG_LOGGING_SET 0x10 +#define SWB_CONFIG_AUTOSTART_MICROB_SET 0x20 struct swb_config { unsigned int flags; + int continuous_mode; char *default_browser; char *other_browser_cmd; char *logging; + int autostart_microb; +}; + +struct swb_config_option { + char *name; + enum { + SWB_CONFIG_OPT_STRING, + SWB_CONFIG_OPT_INT + } type; + int set_mask; + size_t offset; }; -void swb_config_init(struct swb_config *cfg); +inline void swb_config_init(struct swb_config *cfg); void swb_config_free(struct swb_config *cfg); int swb_config_load(struct swb_config *cfg); -int swb_config_save(struct swb_config *cfg); - #endif /* _CONFIG_H */