diff options
author | James Bursa <james@netsurf-browser.org> | 2003-02-09 12:58:15 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-02-09 12:58:15 +0000 |
commit | a4c5929a2fac1cb0c039b2d009d8093ac81a90d7 (patch) | |
tree | 710bf4247d92ec63df7c92815c5360ec907a4b66 /desktop/fetch.h | |
parent | 948dfeb1c2404e6bdad8c20c83a26f3eecb3764a (diff) | |
download | netsurf-a4c5929a2fac1cb0c039b2d009d8093ac81a90d7.tar.gz netsurf-a4c5929a2fac1cb0c039b2d009d8093ac81a90d7.tar.bz2 |
[project @ 2003-02-09 12:58:14 by bursa]
Reorganization and rewrite of fetch, cache, and content handling.
svn path=/import/netsurf/; revision=96
Diffstat (limited to 'desktop/fetch.h')
-rw-r--r-- | desktop/fetch.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/desktop/fetch.h b/desktop/fetch.h deleted file mode 100644 index f9366c8fa..000000000 --- a/desktop/fetch.h +++ /dev/null @@ -1,49 +0,0 @@ -/** - * $Id: fetch.h,v 1.2 2003/01/06 00:04:43 bursa Exp $ - */ - -#ifndef _NETSURF_DESKTOP_FETCH_H_ -#define _NETSURF_DESKTOP_FETCH_H_ - -#include "libxml/HTMLparser.h" -#include "netsurf/render/box.h" -#include "netsurf/render/css.h" -#include "netsurf/desktop/browser.h" -#include <time.h> - -typedef enum {fetch_CURL} fetch_type; -typedef enum {fetch_STATUS_SEND, fetch_STATUS_WAIT, fetch_STATUS_FETCH, fetch_STATUS_FINISH, fetch_DELETED} fetch_status; - -typedef int fetch_flags; -#define fetch_DO_NOT_CHECK_CACHE ((fetch_flags) 1); -#define fetch_DO_NOT_STORE_IN_CACHE ((fetch_flags) 2); - -struct fetch_request { - enum {REQUEST_FROM_BROWSER} type; - union {struct browser_window* browser;} requestor; -}; - -struct fetch -{ - char* location; - fetch_type type; - fetch_flags flags; - - fetch_status status; - int bytes_fetched; - int bytes_total; - - struct fetch_request* request; - - time_t start_time; - - struct fetch* next; -}; - -struct fetch* create_fetch(char* location, char* previous, fetch_flags f, struct fetch_request* r); -void fetch_destroy(struct fetch* f); -struct fetch* fetch_cancel(struct fetch* f); -void fetch_receive(struct fetch* f, int amount, char* bytes); -struct fetch* fetch_poll(struct fetch* f); - -#endif |