NetSurf
|
Fetch operation implementation for win32. More...
#include <stdlib.h>
#include <string.h>
#include "utils/log.h"
#include "utils/file.h"
#include "utils/filepath.h"
#include "content/fetch.h"
#include "netsurf/fetch.h"
#include "windows/fetch.h"
#include "windows/gui.h"
Go to the source code of this file.
Functions | |
static const char * | fetch_filetype (const char *unix_path) |
determine the MIME type of a local file. More... | |
static nsurl * | nsw32_get_resource_url (const char *path) |
Translate resource to full win32 url. More... | |
nserror | nsw32_get_resource_data (const char *path, const uint8_t **data_out, size_t *data_len_out) |
Translate resource to win32 resource data. More... | |
Variables | |
static struct gui_fetch_table | fetch_table |
win32 fetch operation table More... | |
struct gui_fetch_table * | win32_fetch_table = &fetch_table |
win32 API fetch operation table More... | |
Fetch operation implementation for win32.
Definition in file fetch.c.
|
static |
nserror nsw32_get_resource_data | ( | const char * | path, |
const uint8_t ** | data_out, | ||
size_t * | data_len_out | ||
) |
Translate resource to win32 resource data.
Obtains the data for a resource directly
path | The path of the resource to locate. |
data | Pointer to recive data into |
data_len | Pointer to length of returned data |
Definition at line 90 of file fetch.c.
References NSERROR_NOT_FOUND, NSERROR_OK, and path().
Referenced by nsw32_messages_init().
|
static |
Translate resource to full win32 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 77 of file fetch.c.
References filepath_sfind(), G_resource_pathv, netsurf_path_to_nsurl(), path(), and PATH_MAX.
|
static |
win32 fetch operation table
struct gui_fetch_table* win32_fetch_table = &fetch_table |