NetSurf
|
function table for fetcher operations. More...
#include <fetch.h>
Data Fields | |
const char *(* | filetype )(const char *unix_path) |
Determine the MIME type of a local file. More... | |
struct nsurl *(* | get_resource_url )(const char *path) |
Translate resource to full url. More... | |
nserror(* | get_resource_data )(const char *path, const uint8_t **data, size_t *data_len) |
Translate resource to source data. More... | |
nserror(* | release_resource_data )(const uint8_t *data) |
Releases source data. More... | |
char *(* | mimetype )(const char *ro_path) |
Find a MIME type for a local file. More... | |
int(* | socket_open )(int domain, int type, int protocol) |
Open a socket. More... | |
int(* | socket_close )(int socket) |
Close a socket. More... | |
const char *(* gui_fetch_table::filetype) (const char *unix_path) |
Determine the MIME type of a local file.
unix_path | Unix style path to file on disk |
Definition at line 45 of file fetch.h.
Referenced by fetch_file_process_plain(), fetch_resource_data_handler(), gui_default_mimetype(), process_dir_ent(), and verify_fetch_register().
nserror(* gui_fetch_table::get_resource_data) (const char *path, const uint8_t **data, size_t *data_len) |
Translate resource to source 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 77 of file fetch.h.
Referenced by fetch_resource_initialise(), and verify_fetch_register().
Translate resource to full url.
Transforms a resource protocol 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 45 of file fetch.h.
Referenced by fetch_resource_initialise(), and verify_fetch_register().
char *(* gui_fetch_table::mimetype) (const char *ro_path) |
Find a MIME type for a local file.
ro_path | RISC OS style path to file on disk |
Definition at line 100 of file fetch.h.
Referenced by fetch_curl_postdata_convert(), and verify_fetch_register().
nserror(* gui_fetch_table::release_resource_data) (const uint8_t *data) |
Releases source data.
Releases source data obtained from get_resource_data()
data | The value returned from a previous get_resource_data call |
Definition at line 89 of file fetch.h.
Referenced by fetch_resource_finalise(), and verify_fetch_register().
int(* gui_fetch_table::socket_close) (int socket) |
Close a socket.
socket | Socket descriptor |
Definition at line 118 of file fetch.h.
Referenced by fetch_curl_socket_close(), and verify_fetch_register().
int(* gui_fetch_table::socket_open) (int domain, int type, int protocol) |
Open a socket.
domain | Communication domain |
type | Socket type |
protocol | Protocol |
Definition at line 110 of file fetch.h.
Referenced by fetch_curl_socket_open(), and verify_fetch_register().