From 62245d13ec60e3c0fc78221f0a8f754f33c2b6a1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 5 Jan 2004 02:10:59 +0000 Subject: [project @ 2004-01-05 02:10:59 by jmb] Add ability to turn off browser features in build. This may be useful when hunting down bugs. svn path=/import/netsurf/; revision=480 --- content/fetch.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'content/fetch.h') diff --git a/content/fetch.h b/content/fetch.h index 159921610..5075f6058 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -13,8 +13,18 @@ #define _NETSURF_DESKTOP_FETCH_H_ #include - -typedef enum {FETCH_TYPE, FETCH_DATA, FETCH_FINISHED, FETCH_ERROR, FETCH_REDIRECT, FETCH_AUTH} fetch_msg; +#include "netsurf/utils/config.h" + +typedef enum { + FETCH_TYPE, + FETCH_DATA, + FETCH_FINISHED, + FETCH_ERROR, + FETCH_REDIRECT, +#ifdef WITH_AUTH + FETCH_AUTH +#endif +} fetch_msg; struct content; struct fetch; @@ -26,7 +36,11 @@ 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, bool only_2xx, char *post_urlenc, - struct form_successful_control *post_multipart, bool cookies); + struct form_successful_control *post_multipart +#ifdef WITH_COOKIES + ,bool cookies +#endif + ); void fetch_abort(struct fetch *f); void fetch_poll(void); void fetch_quit(void); -- cgit v1.2.3