NetSurf
|
Interface for fetchers factory. More...
Go to the source code of this file.
Data Structures | |
struct | fetcher_operation_table |
Fetcher operations API. More... | |
Functions | |
nserror | fetcher_add (lwc_string *scheme, const struct fetcher_operation_table *ops) |
Register a fetcher for a scheme. More... | |
nserror | fetcher_init (void) |
Initialise all registered fetchers. More... | |
void | fetcher_quit (void) |
Clean up for quit. More... | |
Interface for fetchers factory.
Definition in file fetchers.h.
nserror fetcher_add | ( | lwc_string * | scheme, |
const struct fetcher_operation_table * | ops | ||
) |
Register a fetcher for a scheme.
scheme | The scheme fetcher is for (caller relinquishes ownership) |
ops | The operations for the fetcher. |
Definition at line 357 of file fetch.c.
References fetch_ref_fetcher(), fetch::fetcherd, fetchers, fetcher_operation_table::initialise, MAX_FETCHERS, NSERROR_INIT_FAILED, NSERROR_OK, scheme_fetcher_s::ops, and scheme_fetcher_s::scheme.
Referenced by fetch_curl_register(), fetch_data_register(), fetch_file_register(), fetch_javascript_register(), fetch_resource_register(), fetch_rsrc_register(), and html_css_fetcher_register().
nserror fetcher_init | ( | void | ) |
Initialise all registered fetchers.
Definition at line 285 of file fetch.c.
References fetch_curl_register(), fetch_data_register(), fetch_file_register(), fetch_javascript_register(), fetch_resource_register(), and NSERROR_OK.
Referenced by netsurf_init().
void fetcher_quit | ( | void | ) |
Clean up for quit.
Must be called before exiting.
Definition at line 322 of file fetch.c.
References fetch_unref_fetcher(), fetch::fetcherd, fetchers, MAX_FETCHERS, NSLOG, and scheme_fetcher_s::refcount.
Referenced by netsurf_exit().