diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-06-05 12:06:47 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-06-05 12:06:47 +0100 |
commit | f1c2dde13bf1ca59a466cfed2f2d2076c06b235f (patch) | |
tree | 3c8ef58913108a1b5da66dc0431127cc655851a7 /utils/file.h | |
parent | 80bee65a71a7e85cb800e5d1d1f58525c855cb09 (diff) | |
download | netsurf-f1c2dde13bf1ca59a466cfed2f2d2076c06b235f.tar.gz netsurf-f1c2dde13bf1ca59a466cfed2f2d2076c06b235f.tar.bz2 |
extend file table with mkdir all and make fs backing store use it.
enable fs backing store for RISC OS.
Diffstat (limited to 'utils/file.h')
-rw-r--r-- | utils/file.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/file.h b/utils/file.h index 2e47e1fa1..7baf2f019 100644 --- a/utils/file.h +++ b/utils/file.h @@ -106,6 +106,14 @@ struct gui_file_table { * code on faliure. */ nserror (*path_to_nsurl)(const char *path, struct nsurl **url); + + /** + * Ensure that all directory elements needed to store a filename exist. + * + * @param[in] fname The filename to ensure the path to exists. + * @return NSERROR_OK on success or error code on failure. + */ + nserror (*mkdir_all)(const char *fname); }; /** Default (posix) file operation table. */ @@ -156,4 +164,12 @@ nserror netsurf_nsurl_to_path(struct nsurl *url, char **path_out); */ nserror netsurf_path_to_nsurl(const char *path, struct nsurl **url); +/** + * Ensure that all directory elements needed to store a filename exist. + * + * @param fname The filename to ensure the path to exists. + * @return NSERROR_OK on success or error code on failure. + */ +nserror netsurf_mkdir_all(const char *fname); + #endif |