summaryrefslogtreecommitdiff
path: root/utils/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/file.h')
-rw-r--r--utils/file.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/utils/file.h b/utils/file.h
index 5ee13b5aa..809ffe419 100644
--- a/utils/file.h
+++ b/utils/file.h
@@ -117,7 +117,7 @@ struct gui_file_table {
};
/** Default (posix) file operation table. */
-struct gui_file_table *default_file_table;
+extern struct gui_file_table *default_file_table;
/**
* Generate a path from one or more component elemnts.
@@ -172,4 +172,15 @@ nserror netsurf_path_to_nsurl(const char *path, struct nsurl **url);
*/
nserror netsurf_mkdir_all(const char *fname);
+/**
+ * Recursively remove a directory
+ *
+ * If this returns a failure code, there's an unpredictable amount left
+ * unremoved.
+ *
+ * @param path The path to recursively remove
+ * @return NSERROR_OK on success, or an error code on failure.
+ */
+nserror netsurf_recursive_rm(const char *path);
+
#endif