25#ifndef _NETSURF_DESKTOP_FETCHERS_H_
26#define _NETSURF_DESKTOP_FETCHERS_H_
29#include <libwapcaplet/libwapcaplet.h>
68 void *(*setup)(
struct fetch *parent_fetch,
struct nsurl *url,
69 bool only_2xx,
bool downgrade_tls,
const char *post_urlenc,
71 const char **headers);
91 void (*
poll)(lwc_string *scheme);
96 int (*
fdset)(lwc_string *scheme, fd_set *read_set, fd_set *write_set,
nserror
Enumeration of error codes.
void fetcher_quit(void)
Clean up for quit.
nserror fetcher_add(lwc_string *scheme, const struct fetcher_operation_table *ops)
Register a fetcher for a scheme.
nserror fetcher_init(void)
Initialise all registered fetchers.
static nserror fetch(nsurl *url, enum backing_store_flags bsflags, uint8_t **data_out, size_t *datalen_out)
Retrieve an object from the backing store.
internet structures and defines
struct nsurl nsurl
NetSurf URL object.
Fetch POST multipart data.
Information for a single fetch.
bool(* start)(void *fetch)
start a fetch.
void(* free)(void *fetch)
free a fetch allocated through the setup method.
void(* finalise)(lwc_string *scheme)
Finalise the fetcher.
int(* fdset)(lwc_string *scheme, fd_set *read_set, fd_set *write_set, fd_set *error_set)
update an fdset with the FDs needed to poll cleanly
void(* abort)(void *fetch)
abort a fetch.
bool(* initialise)(lwc_string *scheme)
The initialiser for the fetcher.
void(* poll)(lwc_string *scheme)
poll a fetcher to let it make progress.
bool(* acceptable)(const struct nsurl *url)
Can this fetcher accept a url.