diff options
author | Xan Lopez <xan@igalia.com> | 2012-05-08 02:27:33 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-05-08 02:29:24 +0800 |
commit | 3847db0803addac9f0b90dc86767d8f65768d4ad (patch) | |
tree | baa17c614dc6b90333eeca6ab47f2629c9303546 /lib/ephy-file-helpers.h | |
parent | 8c65eb746306499465f23057dbd4dea484c953aa (diff) | |
download | gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.gz gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.bz2 gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.lz gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.xz gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.tar.zst gsoc2013-epiphany-3847db0803addac9f0b90dc86767d8f65768d4ad.zip |
Allow for more fine-grained file helpers init
Since we are about to migrate our profile dir, allow file helpers init
to not ensure the profile dir exists (it was hardcoded until now). For
this we get rid of the ugly boolean parameters and add a flags
parameter, which preserves the old behaviors and allows for this new
option.
We update all the callers in the tree.
Diffstat (limited to 'lib/ephy-file-helpers.h')
-rw-r--r-- | lib/ephy-file-helpers.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h index 4cd270f83..68a6db616 100644 --- a/lib/ephy-file-helpers.h +++ b/lib/ephy-file-helpers.h @@ -45,11 +45,18 @@ typedef enum EPHY_MIME_PERMISSION_UNKNOWN = 3 } EphyMimePermission; +typedef enum +{ + EPHY_FILE_HELPERS_NONE = 0, + EPHY_FILE_HELPERS_KEEP_TEMP_DIR = 1 << 1, + EPHY_FILE_HELPERS_PRIVATE_PROFILE = 1 << 2, + EPHY_FILE_HELPERS_ENSURE_EXISTS = 1 << 3, +} EphyFileHelpersFlags; + #define EPHY_UUID_ENVVAR "EPHY_UNIQUE" gboolean ephy_file_helpers_init (const char *profile_dir, - gboolean private_profile, - gboolean keep_temp_dir, + EphyFileHelpersFlags flags, GError **error); const char * ephy_file (const char *filename); const char * ephy_dot_dir (void); |