54 if (strcmp(
path,
"favicon.ico") == 0)
68 NSLOG(netsurf, INFO,
"unix path %s", unix_path);
69 l = strlen(unix_path);
70 if (2 < l && strcasecmp(unix_path + l - 3,
"css") == 0)
72 if (2 < l && strcasecmp(unix_path + l - 3,
"f79") == 0)
74 if (2 < l && strcasecmp(unix_path + l - 3,
"jpg") == 0)
76 if (3 < l && strcasecmp(unix_path + l - 4,
"jpeg") == 0)
78 if (2 < l && strcasecmp(unix_path + l - 3,
"gif") == 0)
80 if (2 < l && strcasecmp(unix_path + l - 3,
"png") == 0)
82 if (2 < l && strcasecmp(unix_path + l - 3,
"b60") == 0)
84 if (2 < l && strcasecmp(unix_path + l - 3,
"jng") == 0)
86 if (2 < l && strcasecmp(unix_path + l - 3,
"svg") == 0)
88 if (2 < l && strcasecmp(unix_path + l - 3,
"bmp") == 0)
char * filepath_sfind(char **respathv, char *filepath, const char *filename)
Searches an array of resource paths for a file.
Utility routines to obtain paths to file resources.
static struct gui_fetch_table fetch_table
static nsurl * get_resource_url(const char *path)
Translate resource to full url.
struct gui_fetch_table * framebuffer_fetch_table
static const char * fetch_filetype(const char *unix_path)
filetype – determine the MIME type of a local file
char ** respaths
resource search path vector
Interface to platform-specific fetcher operations.
#define NSLOG(catname, level, logmsg, args...)
NetSurf URL handling (interface).
struct nsurl nsurl
NetSurf URL object.
Interface to utility string handling.
function table for fetcher operations.
const char *(* filetype)(const char *unix_path)
Determine the MIME type of a local file.
nserror netsurf_path_to_nsurl(const char *path, struct nsurl **url)
Create a nsurl from a path.
Default operations table for files.
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.