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 --- debug/netsurfd.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'debug') diff --git a/debug/netsurfd.c b/debug/netsurfd.c index 33b16678b..827d01b46 100644 --- a/debug/netsurfd.c +++ b/debug/netsurfd.c @@ -7,6 +7,7 @@ #include #include +#include "netsurf/utils/config.h" #include "netsurf/content/fetch.h" #include "netsurf/content/cache.h" #include "netsurf/content/content.h" @@ -47,7 +48,11 @@ int main(int argc, char *argv[]) break; url[strlen(url) - 1] = 0; destroyed = 0; - c = fetchcache(url, 0, callback, 0, 0, 100, 1000, false, 0, 0, true); + c = fetchcache(url, 0, callback, 0, 0, 100, 1000, false, 0, 0 +#ifdef WITH_COOKIES + , true +#endif + ); if (c) { done = c->status == CONTENT_STATUS_DONE; while (!done) @@ -84,9 +89,11 @@ void gui_remove_gadget(void *p) { } +#ifdef WITH_PLUGIN void plugin_decode(void *a, void *b, void *c, void *d) { } +#endif void html_redraw(struct content *c, long x, long y, unsigned long width, unsigned long height, @@ -112,17 +119,22 @@ void html_remove_instance(struct content *c, struct browser_window *bw, { } +#ifdef WITH_AUTH void *login_list_get(char *url) { return 0; } +#endif +#ifdef WITH_PLUGIN bool plugin_handleable(const char *mime_type) { return false; } +#endif #ifdef riscos +#ifdef WITH_PLUGIN void plugin_msg_parse(wimp_message *message, int ack) {} void plugin_create(struct content *c) {} void plugin_process_data(struct content *c, char *data, unsigned long size) {} @@ -142,6 +154,7 @@ void plugin_remove_instance(struct content *c, struct browser_window *bw, void plugin_reshape_instance(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params, void **state) {} +#endif char *NETSURF_DIR = ""; #endif -- cgit v1.2.3