2003-06-30 16:44:03 +04:00
|
|
|
/*
|
2006-11-27 18:35:18 +03:00
|
|
|
* This file is part of NetSurf, http://netsurf-browser.org/
|
2003-06-30 16:44:03 +04:00
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
2005-08-21 16:04:18 +04:00
|
|
|
* Copyright 2005 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).
|
|
|
|
*
|
2004-06-11 03:55:23 +04:00
|
|
|
* The fetchcache() / fetchcache_go() pair of functions retrieve a URL from
|
|
|
|
* the cache, or fetch, convert, and cache it if not cached.
|
2003-10-01 00:33:45 +04:00
|
|
|
*/
|
|
|
|
|
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>
|
2005-08-21 16:04:18 +04:00
|
|
|
#include <stdint.h>
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "content/content.h"
|
2003-02-09 15:58:15 +03:00
|
|
|
|
2003-10-25 18:13:49 +04:00
|
|
|
struct form_successful_control;
|
|
|
|
|
2004-06-11 03:55:23 +04:00
|
|
|
void fetchcache_init(void);
|
|
|
|
struct content * fetchcache(const char *url,
|
2005-08-21 16:04:18 +04:00
|
|
|
void (*callback)(content_msg msg, struct content *c,
|
|
|
|
intptr_t p1, intptr_t p2, union content_msg_data data),
|
|
|
|
intptr_t p1, intptr_t p2,
|
2004-06-11 03:55:23 +04:00
|
|
|
int width, int height,
|
|
|
|
bool no_error_pages,
|
|
|
|
char *post_urlenc,
|
|
|
|
struct form_successful_control *post_multipart,
|
2007-01-27 23:58:20 +03:00
|
|
|
bool verifiable,
|
2005-01-03 05:09:20 +03:00
|
|
|
bool download);
|
2007-01-27 23:58:20 +03:00
|
|
|
void fetchcache_go(struct content *content, const char *referer,
|
2005-08-21 16:04:18 +04:00
|
|
|
void (*callback)(content_msg msg, struct content *c,
|
|
|
|
intptr_t p1, intptr_t p2, union content_msg_data data),
|
|
|
|
intptr_t p1, intptr_t p2,
|
2005-01-25 02:02:37 +03:00
|
|
|
int width, int height,
|
2004-06-11 03:55:23 +04:00
|
|
|
char *post_urlenc,
|
|
|
|
struct form_successful_control *post_multipart,
|
2007-02-03 02:08:13 +03:00
|
|
|
bool verifiable, const char *parent_url);
|
2003-02-09 15:58:15 +03:00
|
|
|
|
|
|
|
#endif
|