X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=config.h;h=11ef5c515b5305f78c788d54a797db11c7662da6;hb=HEAD;hp=1ca50a37fb9b9d90b8d4990d95b39995010e5aea;hpb=3617d13c14e77d846889d1f4fe2a797715a27e96;p=browser-switch diff --git a/config.h b/config.h index 1ca50a3..11ef5c5 100644 --- a/config.h +++ b/config.h @@ -32,9 +32,6 @@ struct swb_config { unsigned int flags; - /* Array of pointers to the elements of the struct, in the order given - in swb_config_options[] */ - void *entries[5]; int continuous_mode; char *default_browser; @@ -50,14 +47,12 @@ struct swb_config_option { SWB_CONFIG_OPT_INT } type; int set_mask; + size_t offset; }; -void swb_config_copy(struct swb_config *dst, struct swb_config *src); -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 */