NetSurf
Functions | Variables
fetch.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <limits.h>
#include "utils/errors.h"
#include "utils/file.h"
#include "utils/nsurl.h"
#include "utils/filepath.h"
#include "netsurf/fetch.h"
#include "monkey/filetype.h"
#include "monkey/fetch.h"
Include dependency graph for fetch.c:

Go to the source code of this file.

Functions

static nsurlgui_get_resource_url (const char *path)
 

Variables

char ** respaths
 resource search path vector More...
 
static struct gui_fetch_table fetch_table
 
struct gui_fetch_tablemonkey_fetch_table = &fetch_table
 

Function Documentation

◆ gui_get_resource_url()

static nsurl * gui_get_resource_url ( const char *  path)
static

Definition at line 37 of file fetch.c.

References filepath_sfind(), netsurf_path_to_nsurl(), path(), PATH_MAX, and respaths.

Here is the call graph for this function:

Variable Documentation

◆ fetch_table

struct gui_fetch_table fetch_table
static
Initial value:
= {
.filetype = monkey_fetch_filetype,
.get_resource_url = gui_get_resource_url,
}
static nsurl * gui_get_resource_url(const char *path)
Definition: fetch.c:37
const char * monkey_fetch_filetype(const char *unix_path)
Determine the MIME type of a local file.
Definition: filetype.c:182

Definition at line 47 of file fetch.c.

◆ monkey_fetch_table

struct gui_fetch_table* monkey_fetch_table = &fetch_table

Definition at line 53 of file fetch.c.

Referenced by main().

◆ respaths

char** respaths
extern