From a4c5929a2fac1cb0c039b2d009d8093ac81a90d7 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 9 Feb 2003 12:58:15 +0000 Subject: [project @ 2003-02-09 12:58:14 by bursa] Reorganization and rewrite of fetch, cache, and content handling. svn path=/import/netsurf/; revision=96 --- content/fetch.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 content/fetch.h (limited to 'content/fetch.h') diff --git a/content/fetch.h b/content/fetch.h new file mode 100644 index 000000000..171bf33cb --- /dev/null +++ b/content/fetch.h @@ -0,0 +1,20 @@ +/** + * $Id: fetch.h,v 1.1 2003/02/09 12:58:14 bursa Exp $ + */ + +#ifndef _NETSURF_DESKTOP_FETCH_H_ +#define _NETSURF_DESKTOP_FETCH_H_ + +typedef enum {FETCH_TYPE, FETCH_DATA, FETCH_FINISHED, FETCH_ERROR} fetch_msg; + +struct content; +struct fetch; + +void fetch_init(void); +struct fetch * fetch_start(char *url, char *referer, + void (*callback)(fetch_msg msg, void *p, char *data, unsigned long size), void *p); +void fetch_abort(struct fetch *f); +void fetch_poll(void); +void fetch_quit(void); + +#endif -- cgit v1.2.3