35#ifndef NETSURF_UTILS_FILE_H
36#define NETSURF_UTILS_FILE_H
nserror
Enumeration of error codes.
struct nsurl nsurl
NetSurf URL object.
/brief function table for file and filename operations.
nserror(* basename)(const char *path, char **str, size_t *size)
Get the basename of a file.
nserror(* mkdir_all)(const char *fname)
Ensure that all directory elements needed to store a filename exist.
nserror(* nsurl_to_path)(struct nsurl *url, char **path)
Create a path from a nsurl.
nserror(* mkpath)(char **str, size_t *size, size_t nemb, va_list ap)
Generate a path from one or more component elemnts.
nserror(* path_to_nsurl)(const char *path, struct nsurl **url)
Create a nsurl from a path.
nserror netsurf_mkdir_all(const char *fname)
Ensure that all directory elements needed to store a filename exist.
nserror netsurf_nsurl_to_path(struct nsurl *url, char **path_out)
Create a path from a nsurl.
struct gui_file_table * default_file_table
Default (posix) file operation table.
nserror netsurf_path_to_nsurl(const char *path, struct nsurl **url)
Create a nsurl from a path.
nserror netsurf_mkpath(char **str, size_t *size, size_t nelm,...)
Generate a path from one or more component elemnts.
nserror netsurf_recursive_rm(const char *path)
Recursively remove a directory.
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.