2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
2003-02-09 15:58:15 +03:00
|
|
|
*/
|
|
|
|
|
2003-10-01 00:33:45 +04:00
|
|
|
/** \file
|
|
|
|
* High-level fetching, caching and conversion (interface).
|
|
|
|
*
|
|
|
|
* The fetchcache() function retrieves a URL from the cache, or fetches,
|
|
|
|
* converts, and caches it if not cached.
|
|
|
|
*/
|
|
|
|
|
2003-02-09 15:58:15 +03:00
|
|
|
#ifndef _NETSURF_DESKTOP_FETCHCACHE_H_
|
|
|
|
#define _NETSURF_DESKTOP_FETCHCACHE_H_
|
|
|
|
|
2003-09-17 16:57:43 +04:00
|
|
|
#include <stdbool.h>
|
2004-01-05 05:10:59 +03:00
|
|
|
#include "netsurf/utils/config.h"
|
2003-02-09 15:58:15 +03:00
|
|
|
#include "netsurf/content/content.h"
|
|
|
|
|
2004-01-20 22:08:34 +03:00
|
|
|
#ifdef WITH_POST
|
2003-10-25 18:13:49 +04:00
|
|
|
struct form_successful_control;
|
2004-01-20 22:08:34 +03:00
|
|
|
#endif
|
2003-10-25 18:13:49 +04:00
|
|
|
|
2003-06-17 23:24:21 +04:00
|
|
|
struct content * fetchcache(const char *url, char *referer,
|
|
|
|
void (*callback)(content_msg msg, struct content *c, void *p1,
|
|
|
|
void *p2, const char *error),
|
2003-08-29 16:57:14 +04:00
|
|
|
void *p1, void *p2, unsigned long width, unsigned long height,
|
2004-01-20 22:08:34 +03:00
|
|
|
bool only_2xx
|
|
|
|
#ifdef WITH_POST
|
|
|
|
, char *post_urlenc,
|
2004-01-05 05:10:59 +03:00
|
|
|
struct form_successful_control *post_multipart
|
2004-01-20 22:08:34 +03:00
|
|
|
#endif
|
2004-01-05 05:10:59 +03:00
|
|
|
#ifdef WITH_COOKIES
|
|
|
|
,bool cookies
|
|
|
|
#endif
|
|
|
|
);
|
2003-12-27 23:15:23 +03:00
|
|
|
void fetchcache_init(void);
|
2003-02-09 15:58:15 +03:00
|
|
|
|
|
|
|
#endif
|