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 /desktop/browser.h | |
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 'desktop/browser.h')
-rw-r--r-- | desktop/browser.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/desktop/browser.h b/desktop/browser.h index fd25299d8..ada21a37b 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -11,6 +11,7 @@ #include <stdbool.h> #include <time.h> +#include "netsurf/utils/config.h" #include "netsurf/content/content.h" #include "netsurf/desktop/gui.h" #include "netsurf/render/box.h" @@ -54,10 +55,11 @@ struct browser_window void (*caret_callback)(struct browser_window *bw, char key, void *p); void *caret_p; - +#ifdef WITH_FRAMES struct browser_window *parent; unsigned int no_children; struct browser_window **children; +#endif }; @@ -92,8 +94,16 @@ struct box_selection /* public functions */ -struct browser_window* create_browser_window(int flags, int width, int height, struct browser_window *parent); -void browser_window_destroy(struct browser_window* bw, bool self); +struct browser_window* create_browser_window(int flags, int width, int height +#ifdef WITH_FRAMES +, struct browser_window *parent +#endif +); +void browser_window_destroy(struct browser_window* bw +#ifdef WITH_FRAMES +, bool self +#endif +); void browser_window_open_location(struct browser_window* bw, const char* url); void browser_window_open_location_historical(struct browser_window* bw, const char* url, char *post_urlenc, |