NetSurf
|
Interfaces for fetch table. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "utils/nsurl.h"
#include "utils/log.h"
#include "utils/filepath.h"
#include "utils/file.h"
#include "netsurf/fetch.h"
#include "framebuffer/findfile.h"
#include "framebuffer/fetch.h"
Go to the source code of this file.
Functions | |
static nsurl * | get_resource_url (const char *path) |
Translate resource to full url. More... | |
static const char * | fetch_filetype (const char *unix_path) |
filetype – determine the MIME type of a local file More... | |
Variables | |
static struct gui_fetch_table | fetch_table |
struct gui_fetch_table * | framebuffer_fetch_table = &fetch_table |
Interfaces for fetch table.
Definition in file fetch.c.
|
static |
|
static |
Translate resource to full url.
Transforms a resource: path into a full URL. The returned URL is used as the target for a redirect. The caller takes ownership of the returned nsurl including unrefing it when finished with it.
path | The path of the resource to locate. |
Definition at line 49 of file fetch.c.
References filepath_sfind(), netsurf_path_to_nsurl(), path(), PATH_MAX, and respaths.
|
static |
struct gui_fetch_table* framebuffer_fetch_table = &fetch_table |