diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-01-05 02:10:59 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-01-05 02:10:59 +0000 |
commit | 62245d13ec60e3c0fc78221f0a8f754f33c2b6a1 (patch) | |
tree | 5bbe5b8a63941c2d3b7f71fc53ceedcbc1d92cd6 /debug/netsurfd.c | |
parent | 91e767cdfa11225dd370471892000e107bb06726 (diff) | |
download | netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.gz netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.bz2 |
[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
Diffstat (limited to 'debug/netsurfd.c')
-rw-r--r-- | debug/netsurfd.c | 15 |
1 files changed, 14 insertions, 1 deletions
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 <stdbool.h> #include <string.h> +#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 = "<NetSurf$Dir>"; #endif |